#include <linux/clk-provider.h>
#include <linux/device.h>
#include <linux/regmap.h>
#include "clk-uniphier.h"
struct uniphier_clk_gate { … };
#define to_uniphier_clk_gate(_hw) …
static int uniphier_clk_gate_endisable(struct clk_hw *hw, int enable)
{ … }
static int uniphier_clk_gate_enable(struct clk_hw *hw)
{ … }
static void uniphier_clk_gate_disable(struct clk_hw *hw)
{ … }
static int uniphier_clk_gate_is_enabled(struct clk_hw *hw)
{ … }
static const struct clk_ops uniphier_clk_gate_ops = …;
struct clk_hw *uniphier_clk_register_gate(struct device *dev,
struct regmap *regmap,
const char *name,
const struct uniphier_clk_gate_data *data)
{ … }