]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: clk-axi-clkgen move to min/max()
authorNuno Sá <nuno.sa@analog.com>
Mon, 19 May 2025 15:41:11 +0000 (16:41 +0100)
committerStephen Boyd <sboyd@kernel.org>
Tue, 1 Jul 2025 00:57:34 +0000 (17:57 -0700)
commit34e42e9a92cfc1e394fc6c146b4707e37eeb7166
treeb67460562908ccf9e519b5e51d2250fb221543ee
parent236ab6ad215b32210e697039d72c3539286bdc0f
clk: clk-axi-clkgen move to min/max()

Instead of using the type versions of min/max(), use the plain ones as
now they are perfectly capable of handling different types like
unsigned and non negative integers that are compiletime constant.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20250519-dev-axi-clkgen-limits-v6-6-bc4b3b61d1d4@analog.com
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-axi-clkgen.c