Commit 8bed4ed5 authored by Jonathan Neuschäfer's avatar Jonathan Neuschäfer Committed by Stephen Boyd

clk: clps711x: Terminate clk_div_table with sentinel element

In order that the end of a clk_div_table can be detected, it must be
terminated with a sentinel element (.div = 0).

Fixes: 631c5347 ("clk: Add CLPS711X clk driver")
Signed-off-by: default avatarJonathan Neuschäfer <j.neuschaefer@gmx.net>
Link: https://lore.kernel.org/r/20220218000922.134857-5-j.neuschaefer@gmx.netSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 113b261b
...@@ -28,11 +28,13 @@ static const struct clk_div_table spi_div_table[] = { ...@@ -28,11 +28,13 @@ static const struct clk_div_table spi_div_table[] = {
{ .val = 1, .div = 8, }, { .val = 1, .div = 8, },
{ .val = 2, .div = 2, }, { .val = 2, .div = 2, },
{ .val = 3, .div = 1, }, { .val = 3, .div = 1, },
{ /* sentinel */ }
}; };
static const struct clk_div_table timer_div_table[] = { static const struct clk_div_table timer_div_table[] = {
{ .val = 0, .div = 256, }, { .val = 0, .div = 256, },
{ .val = 1, .div = 1, }, { .val = 1, .div = 1, },
{ /* sentinel */ }
}; };
struct clps711x_clk { struct clps711x_clk {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment