clk: imx: use sign_extend32() and abs()
authorMartin Kepplinger <martink@posteo.de>
Tue, 29 Sep 2015 11:32:27 +0000 (13:32 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 1 Oct 2015 23:40:01 +0000 (16:40 -0700)
commit53fdc8fd25e81da9dd3acb920c448b601f8d29ff
tree99d51ca6c1d3b4a3f7431bb2cbfae7e5e6482538
parent7a03fe6f48f35bbf5f5c3cb46f02e8c90b26b238
clk: imx: use sign_extend32() and abs()

This simplifies the given function by getting rid of the manual
sign extension as well as saving an absolute value in an extra
variable.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/imx/clk-pllv2.c