linux/drivers/hwmon/pmbus
Stephen Kitt dd43193976 hwmon (pmbus) use simple i2c probe function
pmbus_do_probe doesn't use the id information provided in its second
argument, so this can be removed, which then allows using the
single-parameter i2c probe function ("probe_new") for probes.

This avoids scanning the identifier tables during probes.

Drivers which didn't use the id are converted as-is; drivers which did
are modified as follows:

* if the information in i2c_client is sufficient, that's used instead
  (client->name);
* configured v. probed comparisons are performed by comparing the
  configured name to the detected name, instead of the ids; this
  involves strcmp but is still cheaper than comparing all the device
  names when scanning the tables;
* anything else is handled by calling i2c_match_id() with the same
  level of error-handling (if any) as before.

Additionally, the mismatch message in the ltc2978 driver is adjusted
so that it no longer assumes that the driver_data is an index into
ltc2978_id.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Acked-by: Wolfram Sang <wsa@kernel.org>
Link: https://lore.kernel.org/r/20200808210004.30880-1-steve@sk2.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2020-09-23 09:42:39 -07:00
..
adm1275.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
bel-pfe.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
ibm-cffps.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
inspur-ipsps.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
ir35221.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
ir38064.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
irps5401.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
isl68137.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
Kconfig hwmon: (pmbus/max20730) Add max20710 support 2020-07-24 07:44:18 -07:00
lm25066.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
ltc2978.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
ltc3815.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
Makefile hwmon: (pmbus) Driver for Maxim MAX16601 2020-05-22 06:28:38 -07:00
max8688.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
max16064.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
max16601.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
max20730.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
max20751.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
max31785.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
max34440.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
pmbus_core.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
pmbus.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
pmbus.h hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
pxe1610.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
tps40422.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
tps53679.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
ucd9000.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
ucd9200.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
xdpe12284.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00
zl6100.c hwmon (pmbus) use simple i2c probe function 2020-09-23 09:42:39 -07:00