]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: ti: dpll: change error return from ~0 to -EINVAL
authorBrian Masney <bmasney@redhat.com>
Mon, 11 Aug 2025 12:48:07 +0000 (08:48 -0400)
committerBrian Masney <bmasney@redhat.com>
Mon, 8 Sep 2025 16:50:55 +0000 (12:50 -0400)
commitfa55aea3dcdb309d8c4cc307dedd6c9390d8185e
tree86470c32720ae22aaf9b1d0569f9d60b7a7d5358
parentec70154c8a5f69604bb7796fd1fe40d22e9396b5
clk: ti: dpll: change error return from ~0 to -EINVAL

When the requested rate cannot be achieved, omap2_dpll_round_rate()
will return ~0. Let's change this to -EINVAL to make the code a little
cleaner to read. This is no functional change.

Tested-by: Anddreas Kemnade <andreas@kemnade.info> # OMAP3 GTA04, OMAP4 Panda
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
drivers/clk/ti/clkt_dpll.c