hwmon: (ltc2978) Introduce helper functions for min and max values
authorGuenter Roeck <linux@roeck-us.net>
Sun, 16 Aug 2015 00:17:53 +0000 (17:17 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 17 Aug 2015 18:55:56 +0000 (11:55 -0700)
The code used to determine historic low and high peaks is repeated
several times. Introduce helper functions to simplify it.

Tested-by: Michael Jones <mike@proclivis.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/ltc2978.c

Simple merge