#include <linux/clk-provider.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/mfd/core.h>
#include <linux/mfd/hi655x-pmic.h>
#define HI655X_CLK_BASE …
#define HI655X_CLK_SET …
struct hi655x_clk { … };
static unsigned long hi655x_clk_recalc_rate(struct clk_hw *hw,
unsigned long parent_rate)
{ … }
static int hi655x_clk_enable(struct clk_hw *hw, bool enable)
{ … }
static int hi655x_clk_prepare(struct clk_hw *hw)
{ … }
static void hi655x_clk_unprepare(struct clk_hw *hw)
{ … }
static int hi655x_clk_is_prepared(struct clk_hw *hw)
{ … }
static const struct clk_ops hi655x_clk_ops = …;
static int hi655x_clk_probe(struct platform_device *pdev)
{ … }
static struct platform_driver hi655x_clk_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;