hwmon: (pmbus/mp2975) Prepare for MP2973 and MP2971
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Fri, 14 Jul 2023 13:51:11 +0000 (15:51 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 21 Aug 2023 13:04:29 +0000 (06:04 -0700)
commit1f6f34d08a95b953c58e1c7388a787e78d819c83
treef4a5b4fb515e6c6de259bb2c401d7d80c15fb79d
parent99a368cfab265a4ecd5643feca5470c6d3c829f2
hwmon: (pmbus/mp2975) Prepare for MP2973 and MP2971

Add support for differntiating between the chips.
The following commits will make use of this mechanism.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com>
Link: https://lore.kernel.org/r/20230714135124.2645339-3-Naresh.Solanki@9elements.com
[groeck: double-cast of_device_get_match_data() to make gcc happy]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/mp2975.c