[PATCH v4 08/13] iio: inkern: Use max_array() to get the maximum value from an array