clk: meson: clk-pll: make "ret" a signed integer
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 26 Dec 2020 12:15:55 +0000 (13:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:52 +0000 (11:37 +0100)
commit02df54191f7f20fb0834a9799bc88e9f6d9498d3
treee3369e142ab72137369540019f14d1e5117bd22d
parent55e47652d6251a8a5bd3c50ca5f42f7ec276fd77
clk: meson: clk-pll: make "ret" a signed integer

[ Upstream commit 9e717285f0bd591d716fa0e7418f2cdaf756dd25 ]

The error codes returned by meson_clk_get_pll_settings() are all
negative. Make "ret" a signed integer in meson_clk_pll_set_rate() to
make it match with the clk_ops.set_rate API as well as the data type
returned by meson_clk_get_pll_settings().

Fixes: 8eed1db1adec6a ("clk: meson: pll: update driver for the g12a")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20201226121556.975418-3-martin.blumenstingl@googlemail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/meson/clk-pll.c