]> Git Repo - linux.git/commitdiff
clk: clps711x: Terminate clk_div_table with sentinel element
authorJonathan Neuschäfer <[email protected]>
Fri, 18 Feb 2022 00:09:20 +0000 (01:09 +0100)
committerStephen Boyd <[email protected]>
Sat, 12 Mar 2022 02:13:24 +0000 (18:13 -0800)
In order that the end of a clk_div_table can be detected, it must be
terminated with a sentinel element (.div = 0).

Fixes: 631c53478973d ("clk: Add CLPS711X clk driver")
Signed-off-by: Jonathan Neuschäfer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
drivers/clk/clk-clps711x.c

index a2c6486ef1708bb387fd88b33e8bbd1fd04c730d..f8417ee2961aaabc9c46e9007716d83b25a3c7bc 100644 (file)
@@ -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, },
+       { /* sentinel */ }
 };
 
 static const struct clk_div_table timer_div_table[] = {
        { .val = 0, .div = 256, },
        { .val = 1, .div = 1, },
+       { /* sentinel */ }
 };
 
 struct clps711x_clk {
This page took 0.060083 seconds and 4 git commands to generate.