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: simplify aw87390_init() argument a bit

Just pass "aw87390" instead of the address of it. It's a bit simpler.

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

authored by

Dan Carpenter and committed by
Mark Brown
164d1037 f47e782c

+4 -4
+4 -4
sound/soc/codecs/aw87390.c
··· 360 360 aw_dev->channel = channel_value; 361 361 } 362 362 363 - static int aw87390_init(struct aw87390 **aw87390, struct i2c_client *i2c, struct regmap *regmap) 363 + static int aw87390_init(struct aw87390 *aw87390, struct i2c_client *i2c, struct regmap *regmap) 364 364 { 365 365 struct aw_device *aw_dev; 366 366 unsigned int chip_id; ··· 384 384 if (!aw_dev) 385 385 return -ENOMEM; 386 386 387 - (*aw87390)->aw_pa = aw_dev; 387 + aw87390->aw_pa = aw_dev; 388 388 aw_dev->i2c = i2c; 389 389 aw_dev->regmap = regmap; 390 390 aw_dev->dev = &i2c->dev; ··· 398 398 aw_dev->prof_index = AW87390_INIT_PROFILE; 399 399 aw_dev->status = AW87390_DEV_PW_OFF; 400 400 401 - aw87390_parse_channel_dt(*aw87390); 401 + aw87390_parse_channel_dt(aw87390); 402 402 403 403 return 0; 404 404 } ··· 426 426 "failed to init regmap\n"); 427 427 428 428 /* aw pa init */ 429 - ret = aw87390_init(&aw87390, i2c, aw87390->regmap); 429 + ret = aw87390_init(aw87390, i2c, aw87390->regmap); 430 430 if (ret) 431 431 return ret; 432 432