hwmon: (ltc2978) Move code to read chip ID into separate function
authorGuenter Roeck <linux@roeck-us.net>
Mon, 8 Jun 2015 17:14:00 +0000 (10:14 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 12 Aug 2015 19:29:12 +0000 (12:29 -0700)
commit836954dadcb351d65cf96584f22c9e437169bd49
tree71606fb800a1208b19dbadc0c00bff8a224a8212
parent33836ee98533fd27baa89dabca48f8d4e69dd438
hwmon: (ltc2978) Move code to read chip ID into separate function

Verifying the chip type is getting more complicated with new chips,
since not all chips support the same mechanism to read the chip type.
Move the code into a separate function to simplify adding support for
those chips.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/ltc2978.c