[PATCH 4.14 170/186] iio: core: Use min() instead of min_t() to make code more robust