]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: use simple i2c probe function (take 2)
authorStephen Kitt <steve@sk2.org>
Fri, 21 Aug 2020 16:03:54 +0000 (18:03 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 23 Sep 2020 16:42:40 +0000 (09:42 -0700)
commit45279a8d6a7fab71886b108b569896c2106935e1
tree358bd6aa76103330dd02854a6eacd61780dc4680
parent29b071e75c868dd8f56c7f092643ed48c11425dc
hwmon: use simple i2c probe function (take 2)

Many hwmon drivers don't use the id information provided by the old
i2c probe function, and the remainder can easily be adapted to the new
form ("probe_new") by calling i2c_match_id explicitly.

This avoids scanning the identifier tables during probes.

Drivers which didn't use the id are converted as-is; drivers which did
are modified to call i2c_match_id() with the same level of
error-handling (if any) as before.

This patch wraps up the transition for hwmon, with four stragglers not
included in the previous large patch.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Link: https://lore.kernel.org/r/20200821160354.594715-1-steve@sk2.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adc128d818.c
drivers/hwmon/ads7828.c
drivers/hwmon/lm87.c
drivers/hwmon/w83795.c