ASoC: cs35l56: Make struct regmap_config const
Subsystems (3)
Richard Fitzgerald
maintainerPATCH 1/1 ASoC: cs35l56: Make struct regmap_config const
It's now possible to declare instances of struct regmap_config as const data.
--- include/sound/cs35l56.h | 6 +++--- sound/soc/codecs/cs35l56-shared.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)
include/sound/cs35l56.h +3 -3
@@ -282,9 +282,9 @@ static inline bool cs35l56_is_otp_register(unsigned int reg)return (reg >>16 ) ==3 ; } -extern struct regmap_config cs35l56_regmap_i2c; -extern struct regmap_config cs35l56_regmap_spi; -extern struct regmap_config cs35l56_regmap_sdw; +extern const struct regmap_config cs35l56_regmap_i2c; +extern const struct regmap_config cs35l56_regmap_spi; +extern const struct regmap_config cs35l56_regmap_sdw;extern const struct cirrus_amp_cal_controls cs35l56_calibration_controls;
sound/soc/codecs/cs35l56-shared.c +3 -3
@@ -925,7 +925,7 @@ const unsigned int cs35l56_tx_input_values[] = { };EXPORT_SYMBOL_NS_GPL (cs35l56_tx_input_values,SND_SOC_CS35L56_SHARED ); -struct regmap_config cs35l56_regmap_i2c = { +const struct regmap_config cs35l56_regmap_i2c = { .reg_bits =32 , .val_bits =32 , .reg_stride =4 ,
@@ -941,7 +941,7 @@ struct regmap_config cs35l56_regmap_i2c = { };EXPORT_SYMBOL_NS_GPL (cs35l56_regmap_i2c,SND_SOC_CS35L56_SHARED ); -struct regmap_config cs35l56_regmap_spi = { +const struct regmap_config cs35l56_regmap_spi = { .reg_bits =32 , .val_bits =32 , .pad_bits =16 ,
@@ -958,7 +958,7 @@ struct regmap_config cs35l56_regmap_spi = { };EXPORT_SYMBOL_NS_GPL (cs35l56_regmap_spi,SND_SOC_CS35L56_SHARED ); -struct regmap_config cs35l56_regmap_sdw = { +const struct regmap_config cs35l56_regmap_sdw = { .reg_bits =32 , .val_bits =32 , .reg_stride =4 ,
Signature · 1 line
2.39.2
Mark Brown
maintainerQuoted 4 lines · Richard Fitzgerald
It's now possible to declare instances of struct
regmap_configas const data.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: cs35l56: Make struct regmap_config const
commit: 90dc34da02aca2fe529ae1ed1822e8fc2a0d9ebc
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark