linux/Documentation
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
..
2020-08-06 10:17:00 -07:00
2020-08-11 14:13:24 -07:00
2020-08-05 10:51:40 -07:00
2020-08-13 22:48:06 +02:00
2020-09-13 14:54:40 -07:00
2020-09-11 09:49:23 +10:00
2020-08-05 19:50:06 -07:00
2020-08-05 11:43:47 -07:00
2020-08-11 13:48:02 -07:00
2020-07-13 11:26:37 -06:00
2020-07-31 11:09:09 -06:00
2020-08-05 19:24:27 -07:00
2020-08-07 18:48:15 -07:00
2020-08-11 11:17:45 -07:00
2020-08-11 11:17:45 -07:00
2020-07-23 14:13:23 -06:00
2020-06-03 20:59:38 -07:00
2020-08-07 10:33:50 -07:00