iio: inkern: Use max_array() to get the maximum value from an array
authorHerve Codina <herve.codina@bootlin.com>
Fri, 23 Jun 2023 08:58:25 +0000 (10:58 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 9 Jul 2023 21:48:15 +0000 (22:48 +0100)
commit97aee7157eeadaf628e7f76da5e49cee91f19901
tree6e97cf1209e05a099989623b483987226a6a44e5
parentc952c748c7a983a8bda9112984e6f2c1f6e441a5
iio: inkern: Use max_array() to get the maximum value from an array

Use max_array() to get the maximum value from an array instead of a
custom local loop.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20230623085830.749991-9-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/iio/inkern.c