minmax: Introduce {min,max}_array()
authorHerve Codina <herve.codina@bootlin.com>
Fri, 23 Jun 2023 08:58:24 +0000 (10:58 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 9 Jul 2023 21:48:14 +0000 (22:48 +0100)
commitc952c748c7a983a8bda9112984e6f2c1f6e441a5
tree6836c050c433568d9de66c09b5149160c7291c1c
parent524cfdf6b88e2536f90f726b8c01ffe218f37d68
minmax: Introduce {min,max}_array()

Introduce min_array() (resp max_array()) in order to get the
minimal (resp maximum) of values present in an array.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20230623085830.749991-8-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/minmax.h