]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/sprd: Constify struct regmap_bus
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Wed, 25 Sep 2024 15:42:45 +0000 (17:42 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 19 Oct 2024 14:26:33 +0000 (17:26 +0300)
`regmap_txt_io` 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>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240925-drm-const-regmap-v1-6-e609d502401b@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/sprd/sprd_dsi.c

index 0b69c140eab36f897d903bd7615c7e4754396762..44a7a579660fd16b63ec81f704133f2515ecc41e 100644 (file)
@@ -209,7 +209,7 @@ static int regmap_tst_io_read(void *context, u32 reg, u32 *val)
        return 0;
 }
 
-static struct regmap_bus regmap_tst_io = {
+static const struct regmap_bus regmap_tst_io = {
        .reg_write = regmap_tst_io_write,
        .reg_read = regmap_tst_io_read,
 };