Skip to content

Commit df43983

Browse files
brooniebebarino
authored andcommitted
clk: versaclock3: Remove redundant _is_writeable()
The versaclock3 driver provides an _is_writeable() function which returns true for all registers. This is the default assumption for regmaps so we can remove the function for a very minor improvement in performance and code size. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent ebb7a19 commit df43983

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/clk/clk-versaclock3.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -586,17 +586,11 @@ static const struct clk_ops vc3_clk_mux_ops = {
586586
.get_parent = vc3_clk_mux_get_parent,
587587
};
588588

589-
static bool vc3_regmap_is_writeable(struct device *dev, unsigned int reg)
590-
{
591-
return true;
592-
}
593-
594589
static const struct regmap_config vc3_regmap_config = {
595590
.reg_bits = 8,
596591
.val_bits = 8,
597592
.cache_type = REGCACHE_RBTREE,
598593
.max_register = 0x24,
599-
.writeable_reg = vc3_regmap_is_writeable,
600594
};
601595

602596
static struct vc3_hw_data clk_div[5];

0 commit comments

Comments
 (0)