Merge tag 'sunxi-drivers-for-6.11-2' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into soc/drivers
Allwinner SoC driver changes for 6.11 part 2 One additional minor cleanup - Const-ify |struct regmap_config| in SRAM driver - Const-ify |struct regmap_bus| in Allwinner RSB bus driver * tag 'sunxi-drivers-for-6.11-2' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux: bus: sunxi-rsb: Constify struct regmap_bus soc: sunxi: sram: Constify struct regmap_config Link: https://lore.kernel.org/r/Zo7T4YsfamN0PbYK@wens.tw Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -344,7 +344,7 @@ static void sunxi_sram_unlock(void *_lock)
|
||||
spin_unlock(lock);
|
||||
}
|
||||
|
||||
static struct regmap_config sunxi_sram_regmap_config = {
|
||||
static const struct regmap_config sunxi_sram_regmap_config = {
|
||||
.reg_bits = 32,
|
||||
.val_bits = 32,
|
||||
.reg_stride = 4,
|
||||
|
||||
Reference in New Issue
Block a user