Searched hist:"6 f4a46f0eb5e7a58be38284c7124ad8b96298b35" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/hwmon/pmbus/ |
H A D | pmbus.c | diff 6f4a46f0eb5e7a58be38284c7124ad8b96298b35 Thu Jan 10 03:18:20 CET 2019 Xiaoting Liu <xiaoting.liu@hxt-semitech.com> hwmon: (pmbus) associate PMBUS_SKIP_STATUS_CHECK with driver data
Current code compares device name with name in i2c_device_id to decide whether PMBUS_SKIP_STATUS_CHECK should be set in pmbus_platform_data, which makes adding new devices with PMBUS_SKIP_STATUS_CHECK should also modify code in pmbus_probe().
This patch adds pmbus_device_info to save pages and flags. Its pointer is put in driver_data of i2c_device_id, which makes adding new device more straightforward.
Signed-off-by: Shunyong Yang <shunyong.yang@hxt-semitech.com> Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com> [groeck: Use designated structure initializers to improve readability] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|