]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: mxs: Use clamp() in clk_ref_round_rate() and clk_ref_set_rate()
authorThorsten Blum <thorsten.blum@toblux.com>
Wed, 10 Jul 2024 14:33:10 +0000 (16:33 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 10 Jul 2024 20:08:59 +0000 (13:08 -0700)
commit12b02b6359598ed126c089e66b5766c461d3420e
treeaaee531aed4a3438d96cbdeac1dba6254b549639
parent7b34303d9dc4f9cf2ea64285bbea26cd01a112c2
clk: mxs: Use clamp() in clk_ref_round_rate() and clk_ref_set_rate()

Use clamp() instead of duplicating its implementation.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Link: https://lore.kernel.org/r/20240710143309.706135-2-thorsten.blum@toblux.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mxs/clk-ref.c