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)
commitee847a252664f54d06bcc6ab2864322cbcb52692
tree908cc93949195d60edea9cecb0afc81aff0be6bd
parent8582bcc8ebb21375b37f337c58ca783b997a0355
hwmon: (ltc2978) Introduce helper functions for min and max values

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