ASoC: cs35l56: Make struct regmap_config const

It's now possible to declare instances of struct regmap_config as
const data.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20240822145535.336407-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Richard Fitzgerald 2024-08-22 15:55:35 +01:00 committed by Mark Brown
parent 1a9e3b0af3
commit 90dc34da02
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
2 changed files with 6 additions and 6 deletions

View File

@ -282,9 +282,9 @@ static inline bool cs35l56_is_otp_register(unsigned int reg)
return (reg >> 16) == 3; return (reg >> 16) == 3;
} }
extern struct regmap_config cs35l56_regmap_i2c; extern const struct regmap_config cs35l56_regmap_i2c;
extern struct regmap_config cs35l56_regmap_spi; extern const struct regmap_config cs35l56_regmap_spi;
extern struct regmap_config cs35l56_regmap_sdw; extern const struct regmap_config cs35l56_regmap_sdw;
extern const struct cirrus_amp_cal_controls cs35l56_calibration_controls; extern const struct cirrus_amp_cal_controls cs35l56_calibration_controls;

View File

@ -916,7 +916,7 @@ const unsigned int cs35l56_tx_input_values[] = {
}; };
EXPORT_SYMBOL_NS_GPL(cs35l56_tx_input_values, SND_SOC_CS35L56_SHARED); 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, .reg_bits = 32,
.val_bits = 32, .val_bits = 32,
.reg_stride = 4, .reg_stride = 4,
@ -932,7 +932,7 @@ struct regmap_config cs35l56_regmap_i2c = {
}; };
EXPORT_SYMBOL_NS_GPL(cs35l56_regmap_i2c, SND_SOC_CS35L56_SHARED); 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, .reg_bits = 32,
.val_bits = 32, .val_bits = 32,
.pad_bits = 16, .pad_bits = 16,
@ -949,7 +949,7 @@ struct regmap_config cs35l56_regmap_spi = {
}; };
EXPORT_SYMBOL_NS_GPL(cs35l56_regmap_spi, SND_SOC_CS35L56_SHARED); 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, .reg_bits = 32,
.val_bits = 32, .val_bits = 32,
.reg_stride = 4, .reg_stride = 4,