[PATCH v3 07/12] iio: inkern: Use max_array() to get the maximum value from an array