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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: aw88261: pass pointer directly instead of passing the address

It's a little bit cleaner to just pass "aw88261" instead of the address
of it "&aw88261".

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aQYKxl2f-zGVdYFC@stanley.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Dan Carpenter and committed by
Mark Brown
84194c66 164d1037

+4 -4
+4 -4
sound/soc/codecs/aw88261.c
··· 1184 1184 aw_dev->channel = channel_value; 1185 1185 } 1186 1186 1187 - static int aw88261_init(struct aw88261 **aw88261, struct i2c_client *i2c, struct regmap *regmap) 1187 + static int aw88261_init(struct aw88261 *aw88261, struct i2c_client *i2c, struct regmap *regmap) 1188 1188 { 1189 1189 struct aw_device *aw_dev; 1190 1190 unsigned int chip_id; ··· 1207 1207 if (!aw_dev) 1208 1208 return -ENOMEM; 1209 1209 1210 - (*aw88261)->aw_pa = aw_dev; 1210 + aw88261->aw_pa = aw_dev; 1211 1211 aw_dev->i2c = i2c; 1212 1212 aw_dev->regmap = regmap; 1213 1213 aw_dev->dev = &i2c->dev; ··· 1221 1221 aw_dev->fade_step = AW88261_VOLUME_STEP_DB; 1222 1222 aw_dev->volume_desc.ctl_volume = AW88261_VOL_DEFAULT_VALUE; 1223 1223 aw_dev->volume_desc.mute_volume = AW88261_MUTE_VOL; 1224 - aw88261_parse_channel_dt(*aw88261); 1224 + aw88261_parse_channel_dt(aw88261); 1225 1225 1226 1226 return ret; 1227 1227 } ··· 1250 1250 } 1251 1251 1252 1252 /* aw pa init */ 1253 - ret = aw88261_init(&aw88261, i2c, aw88261->regmap); 1253 + ret = aw88261_init(aw88261, i2c, aw88261->regmap); 1254 1254 if (ret) 1255 1255 return ret; 1256 1256