]> git.baikalelectronics.ru Git - kernel.git/commit
clk: at91: sam9x60-pll: use logical or for range check
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 22 Jul 2020 07:38:12 +0000 (10:38 +0300)
committerStephen Boyd <sboyd@kernel.org>
Fri, 24 Jul 2020 09:18:47 +0000 (02:18 -0700)
commitfd1099c9f52eac38f7afeb7c3d5c8d010ff74684
tree2bb93247ca03b7e01038f40c9ff00f500d601268
parent015c102e1810d7ce15bcb951dff79ec44dd775ba
clk: at91: sam9x60-pll: use logical or for range check

Use logical or for range check. In case bestrate is not in
characteristics->output[0].min..characteristics->output[0].max
range we should return -ERANGE.

Fixes: 8c4c53d807885 ("clk: at91: add sam9x60 PLL driver")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1595403506-8209-5-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/clk-sam9x60-pll.c