hwmon: (ltc2978) Introduce helper functions for min and max values