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

ASoC: lm4857: use simple i2c probe function

The i2c probe functions here don't use the id information provided in
their second argument, so the single-parameter i2c probe function
("probe_new") can be used instead.

This avoids scanning the identifier tables during probes.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Link: https://lore.kernel.org/r/20220405165836.2165310-5-steve@sk2.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Stephen Kitt and committed by
Mark Brown
182f3ebd a327bdc6

+2 -3
+2 -3
sound/soc/codecs/lm4857.c
··· 115 115 .num_reg_defaults = ARRAY_SIZE(lm4857_default_regs), 116 116 }; 117 117 118 - static int lm4857_i2c_probe(struct i2c_client *i2c, 119 - const struct i2c_device_id *id) 118 + static int lm4857_i2c_probe(struct i2c_client *i2c) 120 119 { 121 120 struct regmap *regmap; 122 121 ··· 137 138 .driver = { 138 139 .name = "lm4857", 139 140 }, 140 - .probe = lm4857_i2c_probe, 141 + .probe_new = lm4857_i2c_probe, 141 142 .id_table = lm4857_i2c_id, 142 143 }; 143 144