summaryrefslogtreecommitdiffstats
path: root/drivers/clk/sunxi/clk-factors.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-01-25 21:15:38 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-01-27 16:50:38 +0100
commitb3e919e03ce84d9768c0e1c12066f502c5bbd485 (patch)
tree445f6bb02820f560cc2cc2515c1caf8ca8287d96 /drivers/clk/sunxi/clk-factors.h
parent63d8c7b9c32004506516f498fa05881c8d258442 (diff)
downloadblackbird-op-linux-b3e919e03ce84d9768c0e1c12066f502c5bbd485.tar.gz
blackbird-op-linux-b3e919e03ce84d9768c0e1c12066f502c5bbd485.zip
clk: sunxi: factors: Make struct clk_factors_config table const
struct clk_factors_config contains shifts/widths for the factors of the factors clk. This is used to read out the factors from the register value. In no case is it written to, so make it const. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/clk/sunxi/clk-factors.h')
-rw-r--r--drivers/clk/sunxi/clk-factors.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/sunxi/clk-factors.h b/drivers/clk/sunxi/clk-factors.h
index 171085ab5513..060319be2b99 100644
--- a/drivers/clk/sunxi/clk-factors.h
+++ b/drivers/clk/sunxi/clk-factors.h
@@ -23,7 +23,7 @@ struct factors_data {
int enable;
int mux;
int muxmask;
- struct clk_factors_config *table;
+ const struct clk_factors_config *table;
void (*getter) (u32 *rate, u32 parent_rate, u8 *n, u8 *k, u8 *m, u8 *p);
const char *name;
};
@@ -31,7 +31,7 @@ struct factors_data {
struct clk_factors {
struct clk_hw hw;
void __iomem *reg;
- struct clk_factors_config *config;
+ const struct clk_factors_config *config;
void (*get_factors) (u32 *rate, u32 parent, u8 *n, u8 *k, u8 *m, u8 *p);
spinlock_t *lock;
};
OpenPOWER on IntegriCloud