mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
drm/sprd: Constify struct regmap_bus
`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>
This commit is contained in:
committed by
Dmitry Baryshkov
parent
6a92271233
commit
420fb223fe
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user