From: Javier Carrasco Date: Wed, 25 Sep 2024 15:42:43 +0000 (+0200) Subject: drm/meson: Constify struct regmap_config X-Git-Tag: v6.13-rc1~122^2~14^2~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0bcbddb7ef0edb8b4ca994033128e955bb8b1b74;p=thirdparty%2Fkernel%2Flinux.git drm/meson: Constify struct regmap_config `meson_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong Reviewed-by: Dmitry Baryshkov Reviewed-by: AngeloGioacchino Del Regno Link: https://patchwork.freedesktop.org/patch/msgid/20240925-drm-const-regmap-v1-4-e609d502401b@gmail.com Signed-off-by: Dmitry Baryshkov --- diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c index bbb662d2f1848..7cace75a38af9 100644 --- a/drivers/gpu/drm/meson/meson_drv.c +++ b/drivers/gpu/drm/meson/meson_drv.c @@ -128,7 +128,7 @@ static bool meson_vpu_has_available_connectors(struct device *dev) return false; } -static struct regmap_config meson_regmap_config = { +static const struct regmap_config meson_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4,