diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-07-05 08:05:18 +0200 |
---|---|---|
committer | Chen-Yu Tsai <wens@csie.org> | 2024-07-11 02:15:19 +0800 |
commit | e4b5a39c2fca597f10f1aa4c12f8f90dcd9431bd (patch) | |
tree | 77e7d5ec8801ad20d0f3e31a6197784ef5bfe680 /drivers/bus | |
parent | 9bc1e34a7b0c91d790eab2db4eea05175d248c68 (diff) | |
download | linux-e4b5a39c2fca597f10f1aa4c12f8f90dcd9431bd.tar.gz linux-e4b5a39c2fca597f10f1aa4c12f8f90dcd9431bd.tar.bz2 linux-e4b5a39c2fca597f10f1aa4c12f8f90dcd9431bd.zip |
bus: sunxi-rsb: Constify struct regmap_bus
`regmap_sunxi_rsb` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240705-sunxi-rsb-bus-const-regmap_bus-v1-1-129094960ce9@gmail.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'drivers/bus')
-rw-r--r-- | drivers/bus/sunxi-rsb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c index 1e29ba76615d..ac6c7e4900f4 100644 --- a/drivers/bus/sunxi-rsb.c +++ b/drivers/bus/sunxi-rsb.c @@ -457,7 +457,7 @@ static void regmap_sunxi_rsb_free_ctx(void *context) kfree(ctx); } -static struct regmap_bus regmap_sunxi_rsb = { +static const struct regmap_bus regmap_sunxi_rsb = { .reg_write = regmap_sunxi_rsb_reg_write, .reg_read = regmap_sunxi_rsb_reg_read, .free_context = regmap_sunxi_rsb_free_ctx, |