diff mbox series

[4/4] clk: clps711x: Terminate clk_div_table with sentinel element

Message ID 20220128230922.2047140-5-j.neuschaefer@gmx.net (mailing list archive)
State New, archived
Headers show
Series [1/4] clk: actions: Terminate clk_div_table with sentinel element | expand

Commit Message

J. Neuschäfer Jan. 28, 2022, 11:09 p.m. UTC
In order that the end of a clk_div_table can be detected, it must be
terminated with a sentinel element (.div = 0).

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
 drivers/clk/clk-clps711x.c | 2 ++
 1 file changed, 2 insertions(+)

--
2.34.1
diff mbox series

Patch

diff --git a/drivers/clk/clk-clps711x.c b/drivers/clk/clk-clps711x.c
index a2c6486ef1708..d96d96c8752c7 100644
--- a/drivers/clk/clk-clps711x.c
+++ b/drivers/clk/clk-clps711x.c
@@ -28,11 +28,13 @@  static const struct clk_div_table spi_div_table[] = {
 	{ .val = 1, .div = 8, },
 	{ .val = 2, .div = 2, },
 	{ .val = 3, .div = 1, },
+	{}
 };

 static const struct clk_div_table timer_div_table[] = {
 	{ .val = 0, .div = 256, },
 	{ .val = 1, .div = 1, },
+	{}
 };

 struct clps711x_clk {