[PATCH AUTOSEL 6.5 08/28] iio: core: Use min() instead of min_t() to make code more robust