aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/clk-cdce925.c
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-10-01 11:00:11 +0200
committerStephen Boyd <sboyd@kernel.org>2024-10-09 16:11:35 -0700
commitd22e5f9bbb9ad60e7d3e030e006b1f05327614c5 (patch)
treeede6b73f922bf8c601e89b830a2c4ab7fa14b496 /drivers/clk/clk-cdce925.c
parentclk: Drop explicit initialization of struct i2c_device_id::driver_data to 0 (diff)
downloadwireguard-linux-d22e5f9bbb9ad60e7d3e030e006b1f05327614c5.tar.xz
wireguard-linux-d22e5f9bbb9ad60e7d3e030e006b1f05327614c5.zip
clk: cdce925: make regmap_cdce925_bus constant
This struct is only used for the regmap initialization via devm_regmap_init() (which expects a pointer to a const struct regmap_bus, as it will not modify the struct), and it is not modified after its declaration. Move regmap_cdce925_bus to a read-only section. Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://lore.kernel.org/r/20241001-clk-cdce925-regmap_bus-const-v1-1-49fc11555b04@gmail.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-cdce925.c')
-rw-r--r--drivers/clk/clk-cdce925.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-cdce925.c b/drivers/clk/clk-cdce925.c
index e48be7a6c0e2..c51818c1af98 100644
--- a/drivers/clk/clk-cdce925.c
+++ b/drivers/clk/clk-cdce925.c
@@ -601,7 +601,7 @@ static int cdce925_regulator_enable(struct device *dev, const char *name)
/* The CDCE925 uses a funky way to read/write registers. Bulk mode is
* just weird, so just use the single byte mode exclusively. */
-static struct regmap_bus regmap_cdce925_bus = {
+static const struct regmap_bus regmap_cdce925_bus = {
.write = cdce925_regmap_i2c_write,
.read = cdce925_regmap_i2c_read,
};