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