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)
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

Simple merge