Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: cs530x: Rename i2c related structures

In preparation for SPI support these structures should be renamed to
reflect that they are for i2c.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Link: https://patch.msgid.link/20251023090327.58275-11-vitalyr@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Simon Trimmer and committed by
Mark Brown
38ff6958 e7ab8583

+4 -4
+1 -1
sound/soc/codecs/cs530x-i2c.c
··· 61 61 62 62 i2c_set_clientdata(client, cs530x); 63 63 64 - cs530x->regmap = devm_regmap_init_i2c(client, &cs530x_regmap); 64 + cs530x->regmap = devm_regmap_init_i2c(client, &cs530x_regmap_i2c); 65 65 if (IS_ERR(cs530x->regmap)) 66 66 return dev_err_probe(&client->dev, PTR_ERR(cs530x->regmap), 67 67 "Failed to allocate register map\n");
+2 -2
sound/soc/codecs/cs530x.c
··· 1128 1128 .endianness = 1, 1129 1129 }; 1130 1130 1131 - const struct regmap_config cs530x_regmap = { 1131 + const struct regmap_config cs530x_regmap_i2c = { 1132 1132 .reg_bits = 16, 1133 1133 .val_bits = 16, 1134 1134 ··· 1140 1140 .reg_defaults = cs530x_reg_defaults, 1141 1141 .num_reg_defaults = ARRAY_SIZE(cs530x_reg_defaults), 1142 1142 }; 1143 - EXPORT_SYMBOL_NS_GPL(cs530x_regmap, "SND_SOC_CS530X"); 1143 + EXPORT_SYMBOL_NS_GPL(cs530x_regmap_i2c, "SND_SOC_CS530X"); 1144 1144 1145 1145 static int cs530x_check_device_id(struct cs530x_priv *cs530x) 1146 1146 {
+1 -1
sound/soc/codecs/cs530x.h
··· 246 246 struct gpio_desc *reset_gpio; 247 247 }; 248 248 249 - extern const struct regmap_config cs530x_regmap; 249 + extern const struct regmap_config cs530x_regmap_i2c; 250 250 int cs530x_probe(struct cs530x_priv *cs530x); 251 251 252 252 #endif