mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-19 12:24:34 +08:00
dd43193976
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> |
||
---|---|---|
.. | ||
adm1275.c | ||
bel-pfe.c | ||
ibm-cffps.c | ||
inspur-ipsps.c | ||
ir35221.c | ||
ir38064.c | ||
irps5401.c | ||
isl68137.c | ||
Kconfig | ||
lm25066.c | ||
ltc2978.c | ||
ltc3815.c | ||
Makefile | ||
max8688.c | ||
max16064.c | ||
max16601.c | ||
max20730.c | ||
max20751.c | ||
max31785.c | ||
max34440.c | ||
pmbus_core.c | ||
pmbus.c | ||
pmbus.h | ||
pxe1610.c | ||
tps40422.c | ||
tps53679.c | ||
ucd9000.c | ||
ucd9200.c | ||
xdpe12284.c | ||
zl6100.c |