Commit 1fdfd517 authored by Jonathan Neuschäfer's avatar Jonathan Neuschäfer Committed by Stephen Boyd

clk: actions: Make sentinel elements more obvious

The sentinel elements of various tables in drivers/clk/actions can be a
bit hard to recognize. Make them easier to see by changing the style
from { 0, 0 } to { /* sentinel */ }.
Signed-off-by: default avatarJonathan Neuschäfer <j.neuschaefer@gmx.net>
Link: https://lore.kernel.org/r/20220218000922.134857-6-j.neuschaefer@gmx.netSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 8bed4ed5
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
static const struct clk_pll_table clk_audio_pll_table[] = { static const struct clk_pll_table clk_audio_pll_table[] = {
{ 0, 45158400 }, { 1, 49152000 }, { 0, 45158400 }, { 1, 49152000 },
{ 0, 0 }, { /* sentinel */ }
}; };
/* pll clocks */ /* pll clocks */
...@@ -138,46 +138,46 @@ static struct clk_factor_table sd_factor_table[] = { ...@@ -138,46 +138,46 @@ static struct clk_factor_table sd_factor_table[] = {
{ 272, 1, 17 * 128 }, { 273, 1, 18 * 128 }, { 274, 1, 19 * 128 }, { 275, 1, 20 * 128 }, { 272, 1, 17 * 128 }, { 273, 1, 18 * 128 }, { 274, 1, 19 * 128 }, { 275, 1, 20 * 128 },
{ 276, 1, 21 * 128 }, { 277, 1, 22 * 128 }, { 278, 1, 23 * 128 }, { 279, 1, 24 * 128 }, { 276, 1, 21 * 128 }, { 277, 1, 22 * 128 }, { 278, 1, 23 * 128 }, { 279, 1, 24 * 128 },
{ 280, 1, 25 * 128 }, { 280, 1, 25 * 128 },
{ 0, 0, 0 }, { /* sentinel */ }
}; };
static struct clk_factor_table de_factor_table[] = { static struct clk_factor_table de_factor_table[] = {
{ 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 },
{ 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 },
{ 8, 1, 12 }, { 8, 1, 12 },
{ 0, 0, 0 }, { /* sentinel */ }
}; };
static struct clk_factor_table hde_factor_table[] = { static struct clk_factor_table hde_factor_table[] = {
{ 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 },
{ 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 },
{ 0, 0, 0 }, { /* sentinel */ }
}; };
static struct clk_div_table rmii_ref_div_table[] = { static struct clk_div_table rmii_ref_div_table[] = {
{ 0, 4 }, { 1, 10 }, { 0, 4 }, { 1, 10 },
{ 0, 0 }, { /* sentinel */ }
}; };
static struct clk_div_table std12rate_div_table[] = { static struct clk_div_table std12rate_div_table[] = {
{ 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 },
{ 4, 5 }, { 5, 6 }, { 6, 7 }, { 7, 8 }, { 4, 5 }, { 5, 6 }, { 6, 7 }, { 7, 8 },
{ 8, 9 }, { 9, 10 }, { 10, 11 }, { 11, 12 }, { 8, 9 }, { 9, 10 }, { 10, 11 }, { 11, 12 },
{ 0, 0 }, { /* sentinel */ }
}; };
static struct clk_div_table i2s_div_table[] = { static struct clk_div_table i2s_div_table[] = {
{ 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 },
{ 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 },
{ 8, 24 }, { 8, 24 },
{ 0, 0 }, { /* sentinel */ }
}; };
static struct clk_div_table nand_div_table[] = { static struct clk_div_table nand_div_table[] = {
{ 0, 1 }, { 1, 2 }, { 2, 4 }, { 3, 6 }, { 0, 1 }, { 1, 2 }, { 2, 4 }, { 3, 6 },
{ 4, 8 }, { 5, 10 }, { 6, 12 }, { 7, 14 }, { 4, 8 }, { 5, 10 }, { 6, 12 }, { 7, 14 },
{ 8, 16 }, { 9, 18 }, { 10, 20 }, { 11, 22 }, { 8, 16 }, { 9, 18 }, { 10, 20 }, { 11, 22 },
{ 0, 0 }, { /* sentinel */ }
}; };
/* mux clock */ /* mux clock */
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
static struct clk_pll_table clk_audio_pll_table[] = { static struct clk_pll_table clk_audio_pll_table[] = {
{0, 45158400}, {1, 49152000}, {0, 45158400}, {1, 49152000},
{0, 0}, { /* sentinel */ }
}; };
static struct clk_pll_table clk_cvbs_pll_table[] = { static struct clk_pll_table clk_cvbs_pll_table[] = {
...@@ -82,7 +82,8 @@ static struct clk_pll_table clk_cvbs_pll_table[] = { ...@@ -82,7 +82,8 @@ static struct clk_pll_table clk_cvbs_pll_table[] = {
{33, 35 * 12000000}, {34, 36 * 12000000}, {35, 37 * 12000000}, {33, 35 * 12000000}, {34, 36 * 12000000}, {35, 37 * 12000000},
{36, 38 * 12000000}, {37, 39 * 12000000}, {38, 40 * 12000000}, {36, 38 * 12000000}, {37, 39 * 12000000}, {38, 40 * 12000000},
{39, 41 * 12000000}, {40, 42 * 12000000}, {41, 43 * 12000000}, {39, 41 * 12000000}, {40, 42 * 12000000}, {41, 43 * 12000000},
{42, 44 * 12000000}, {43, 45 * 12000000}, {0, 0}, {42, 44 * 12000000}, {43, 45 * 12000000},
{ /* sentinel */ }
}; };
/* pll clocks */ /* pll clocks */
...@@ -137,7 +138,7 @@ static struct clk_factor_table sd_factor_table[] = { ...@@ -137,7 +138,7 @@ static struct clk_factor_table sd_factor_table[] = {
{276, 1, 21 * 128}, {277, 1, 22 * 128}, {278, 1, 23 * 128}, {279, 1, 24 * 128}, {276, 1, 21 * 128}, {277, 1, 22 * 128}, {278, 1, 23 * 128}, {279, 1, 24 * 128},
{280, 1, 25 * 128}, {281, 1, 26 * 128}, {280, 1, 25 * 128}, {281, 1, 26 * 128},
{0, 0}, { /* sentinel */ }
}; };
static struct clk_factor_table lcd_factor_table[] = { static struct clk_factor_table lcd_factor_table[] = {
...@@ -150,19 +151,19 @@ static struct clk_factor_table lcd_factor_table[] = { ...@@ -150,19 +151,19 @@ static struct clk_factor_table lcd_factor_table[] = {
{256, 1, 1 * 7}, {257, 1, 2 * 7}, {258, 1, 3 * 7}, {259, 1, 4 * 7}, {256, 1, 1 * 7}, {257, 1, 2 * 7}, {258, 1, 3 * 7}, {259, 1, 4 * 7},
{260, 1, 5 * 7}, {261, 1, 6 * 7}, {262, 1, 7 * 7}, {263, 1, 8 * 7}, {260, 1, 5 * 7}, {261, 1, 6 * 7}, {262, 1, 7 * 7}, {263, 1, 8 * 7},
{264, 1, 9 * 7}, {265, 1, 10 * 7}, {266, 1, 11 * 7}, {267, 1, 12 * 7}, {264, 1, 9 * 7}, {265, 1, 10 * 7}, {266, 1, 11 * 7}, {267, 1, 12 * 7},
{0, 0}, { /* sentinel */ }
}; };
static struct clk_div_table hdmia_div_table[] = { static struct clk_div_table hdmia_div_table[] = {
{0, 1}, {1, 2}, {2, 3}, {3, 4}, {0, 1}, {1, 2}, {2, 3}, {3, 4},
{4, 6}, {5, 8}, {6, 12}, {7, 16}, {4, 6}, {5, 8}, {6, 12}, {7, 16},
{8, 24}, {8, 24},
{0, 0}, { /* sentinel */ }
}; };
static struct clk_div_table rmii_div_table[] = { static struct clk_div_table rmii_div_table[] = {
{0, 4}, {1, 10}, {0, 4}, {1, 10},
{0, 0} { /* sentinel */ }
}; };
/* divider clocks */ /* divider clocks */
...@@ -179,13 +180,14 @@ static OWL_DIVIDER(clk_rmii_ref, "rmii_ref", "ethernet_pll", CMU_ETHERNETPLL, 2, ...@@ -179,13 +180,14 @@ static OWL_DIVIDER(clk_rmii_ref, "rmii_ref", "ethernet_pll", CMU_ETHERNETPLL, 2,
static struct clk_factor_table de_factor_table[] = { static struct clk_factor_table de_factor_table[] = {
{0, 1, 1}, {1, 2, 3}, {2, 1, 2}, {3, 2, 5}, {0, 1, 1}, {1, 2, 3}, {2, 1, 2}, {3, 2, 5},
{4, 1, 3}, {5, 1, 4}, {6, 1, 6}, {7, 1, 8}, {4, 1, 3}, {5, 1, 4}, {6, 1, 6}, {7, 1, 8},
{8, 1, 12}, {0, 0, 0}, {8, 1, 12},
{ /* sentinel */ }
}; };
static struct clk_factor_table hde_factor_table[] = { static struct clk_factor_table hde_factor_table[] = {
{0, 1, 1}, {1, 2, 3}, {2, 1, 2}, {3, 2, 5}, {0, 1, 1}, {1, 2, 3}, {2, 1, 2}, {3, 2, 5},
{4, 1, 3}, {5, 1, 4}, {6, 1, 6}, {7, 1, 8}, {4, 1, 3}, {5, 1, 4}, {6, 1, 6}, {7, 1, 8},
{0, 0, 0}, { /* sentinel */ }
}; };
/* gate clocks */ /* gate clocks */
......
...@@ -73,12 +73,12 @@ ...@@ -73,12 +73,12 @@
static struct clk_pll_table clk_audio_pll_table[] = { static struct clk_pll_table clk_audio_pll_table[] = {
{ 0, 45158400 }, { 1, 49152000 }, { 0, 45158400 }, { 1, 49152000 },
{ 0, 0 }, { /* sentinel */ }
}; };
static struct clk_pll_table clk_edp_pll_table[] = { static struct clk_pll_table clk_edp_pll_table[] = {
{ 0, 810000000 }, { 1, 135000000 }, { 2, 270000000 }, { 0, 810000000 }, { 1, 135000000 }, { 2, 270000000 },
{ 0, 0 }, { /* sentinel */ }
}; };
/* pll clocks */ /* pll clocks */
...@@ -120,41 +120,41 @@ static struct clk_div_table nand_div_table[] = { ...@@ -120,41 +120,41 @@ static struct clk_div_table nand_div_table[] = {
{ 4, 8 }, { 5, 10 }, { 6, 12 }, { 7, 14 }, { 4, 8 }, { 5, 10 }, { 6, 12 }, { 7, 14 },
{ 8, 16 }, { 9, 18 }, { 10, 20 }, { 11, 22 }, { 8, 16 }, { 9, 18 }, { 10, 20 }, { 11, 22 },
{ 12, 24 }, { 13, 26 }, { 14, 28 }, { 15, 30 }, { 12, 24 }, { 13, 26 }, { 14, 28 }, { 15, 30 },
{ 0, 0 }, { /* sentinel */ }
}; };
static struct clk_div_table apb_div_table[] = { static struct clk_div_table apb_div_table[] = {
{ 1, 2 }, { 2, 3 }, { 3, 4 }, { 1, 2 }, { 2, 3 }, { 3, 4 },
{ 0, 0 }, { /* sentinel */ }
}; };
static struct clk_div_table eth_mac_div_table[] = { static struct clk_div_table eth_mac_div_table[] = {
{ 0, 2 }, { 1, 4 }, { 0, 2 }, { 1, 4 },
{ 0, 0 }, { /* sentinel */ }
}; };
static struct clk_div_table rmii_ref_div_table[] = { static struct clk_div_table rmii_ref_div_table[] = {
{ 0, 4 }, { 1, 10 }, { 0, 4 }, { 1, 10 },
{ 0, 0 }, { /* sentinel */ }
}; };
static struct clk_div_table usb3_mac_div_table[] = { static struct clk_div_table usb3_mac_div_table[] = {
{ 1, 2 }, { 2, 3 }, { 3, 4 }, { 1, 2 }, { 2, 3 }, { 3, 4 },
{ 0, 0 } { /* sentinel */ }
}; };
static struct clk_div_table i2s_div_table[] = { static struct clk_div_table i2s_div_table[] = {
{ 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 },
{ 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 },
{ 8, 24 }, { 8, 24 },
{ 0, 0 }, { /* sentinel */ }
}; };
static struct clk_div_table hdmia_div_table[] = { static struct clk_div_table hdmia_div_table[] = {
{ 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 },
{ 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 },
{ 8, 24 }, { 8, 24 },
{ 0, 0 }, { /* sentinel */ }
}; };
/* divider clocks */ /* divider clocks */
...@@ -185,24 +185,24 @@ static struct clk_factor_table sd_factor_table[] = { ...@@ -185,24 +185,24 @@ static struct clk_factor_table sd_factor_table[] = {
{ 280, 1, 25 * 128 }, { 281, 1, 26 * 128 }, { 282, 1, 27 * 128 }, { 283, 1, 28 * 128 }, { 280, 1, 25 * 128 }, { 281, 1, 26 * 128 }, { 282, 1, 27 * 128 }, { 283, 1, 28 * 128 },
{ 284, 1, 29 * 128 }, { 285, 1, 30 * 128 }, { 286, 1, 31 * 128 }, { 287, 1, 32 * 128 }, { 284, 1, 29 * 128 }, { 285, 1, 30 * 128 }, { 286, 1, 31 * 128 }, { 287, 1, 32 * 128 },
{ 0, 0 }, { /* sentinel */ }
}; };
static struct clk_factor_table dmm_factor_table[] = { static struct clk_factor_table dmm_factor_table[] = {
{ 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 1, 3 }, { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 1, 3 },
{ 4, 1, 4 }, { 4, 1, 4 },
{ 0, 0, 0 }, { /* sentinel */ }
}; };
static struct clk_factor_table noc_factor_table[] = { static struct clk_factor_table noc_factor_table[] = {
{ 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 1, 3 }, { 4, 1, 4 }, { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 1, 3 }, { 4, 1, 4 },
{ 0, 0, 0 }, { /* sentinel */ }
}; };
static struct clk_factor_table bisp_factor_table[] = { static struct clk_factor_table bisp_factor_table[] = {
{ 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 },
{ 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 },
{ 0, 0, 0 }, { /* sentinel */ }
}; };
/* factor clocks */ /* factor clocks */
......
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