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: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Link: https://lore.kernel.org/r/20220218000922.134857-6-j.neuschaefer@gmx.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by Jonathan Neuschäfer and committed by Stephen Boyd 1fdfd517 8bed4ed5

+31 -29
+8 -8
drivers/clk/actions/owl-s500.c
··· 95 96 static const struct clk_pll_table clk_audio_pll_table[] = { 97 { 0, 45158400 }, { 1, 49152000 }, 98 - { 0, 0 }, 99 }; 100 101 /* pll clocks */ ··· 138 { 272, 1, 17 * 128 }, { 273, 1, 18 * 128 }, { 274, 1, 19 * 128 }, { 275, 1, 20 * 128 }, 139 { 276, 1, 21 * 128 }, { 277, 1, 22 * 128 }, { 278, 1, 23 * 128 }, { 279, 1, 24 * 128 }, 140 { 280, 1, 25 * 128 }, 141 - { 0, 0, 0 }, 142 }; 143 144 static struct clk_factor_table de_factor_table[] = { 145 { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, 146 { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, 147 { 8, 1, 12 }, 148 - { 0, 0, 0 }, 149 }; 150 151 static struct clk_factor_table hde_factor_table[] = { 152 { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, 153 { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, 154 - { 0, 0, 0 }, 155 }; 156 157 static struct clk_div_table rmii_ref_div_table[] = { 158 { 0, 4 }, { 1, 10 }, 159 - { 0, 0 }, 160 }; 161 162 static struct clk_div_table std12rate_div_table[] = { 163 { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, 164 { 4, 5 }, { 5, 6 }, { 6, 7 }, { 7, 8 }, 165 { 8, 9 }, { 9, 10 }, { 10, 11 }, { 11, 12 }, 166 - { 0, 0 }, 167 }; 168 169 static struct clk_div_table i2s_div_table[] = { 170 { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, 171 { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, 172 { 8, 24 }, 173 - { 0, 0 }, 174 }; 175 176 static struct clk_div_table nand_div_table[] = { 177 { 0, 1 }, { 1, 2 }, { 2, 4 }, { 3, 6 }, 178 { 4, 8 }, { 5, 10 }, { 6, 12 }, { 7, 14 }, 179 { 8, 16 }, { 9, 18 }, { 10, 20 }, { 11, 22 }, 180 - { 0, 0 }, 181 }; 182 183 /* mux clock */
··· 95 96 static const struct clk_pll_table clk_audio_pll_table[] = { 97 { 0, 45158400 }, { 1, 49152000 }, 98 + { /* sentinel */ } 99 }; 100 101 /* pll clocks */ ··· 138 { 272, 1, 17 * 128 }, { 273, 1, 18 * 128 }, { 274, 1, 19 * 128 }, { 275, 1, 20 * 128 }, 139 { 276, 1, 21 * 128 }, { 277, 1, 22 * 128 }, { 278, 1, 23 * 128 }, { 279, 1, 24 * 128 }, 140 { 280, 1, 25 * 128 }, 141 + { /* sentinel */ } 142 }; 143 144 static struct clk_factor_table de_factor_table[] = { 145 { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, 146 { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, 147 { 8, 1, 12 }, 148 + { /* sentinel */ } 149 }; 150 151 static struct clk_factor_table hde_factor_table[] = { 152 { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, 153 { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, 154 + { /* sentinel */ } 155 }; 156 157 static struct clk_div_table rmii_ref_div_table[] = { 158 { 0, 4 }, { 1, 10 }, 159 + { /* sentinel */ } 160 }; 161 162 static struct clk_div_table std12rate_div_table[] = { 163 { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, 164 { 4, 5 }, { 5, 6 }, { 6, 7 }, { 7, 8 }, 165 { 8, 9 }, { 9, 10 }, { 10, 11 }, { 11, 12 }, 166 + { /* sentinel */ } 167 }; 168 169 static struct clk_div_table i2s_div_table[] = { 170 { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, 171 { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, 172 { 8, 24 }, 173 + { /* sentinel */ } 174 }; 175 176 static struct clk_div_table nand_div_table[] = { 177 { 0, 1 }, { 1, 2 }, { 2, 4 }, { 3, 6 }, 178 { 4, 8 }, { 5, 10 }, { 6, 12 }, { 7, 14 }, 179 { 8, 16 }, { 9, 18 }, { 10, 20 }, { 11, 22 }, 180 + { /* sentinel */ } 181 }; 182 183 /* mux clock */
+10 -8
drivers/clk/actions/owl-s700.c
··· 73 74 static struct clk_pll_table clk_audio_pll_table[] = { 75 {0, 45158400}, {1, 49152000}, 76 - {0, 0}, 77 }; 78 79 static struct clk_pll_table clk_cvbs_pll_table[] = { ··· 82 {33, 35 * 12000000}, {34, 36 * 12000000}, {35, 37 * 12000000}, 83 {36, 38 * 12000000}, {37, 39 * 12000000}, {38, 40 * 12000000}, 84 {39, 41 * 12000000}, {40, 42 * 12000000}, {41, 43 * 12000000}, 85 - {42, 44 * 12000000}, {43, 45 * 12000000}, {0, 0}, 86 }; 87 88 /* pll clocks */ ··· 138 {276, 1, 21 * 128}, {277, 1, 22 * 128}, {278, 1, 23 * 128}, {279, 1, 24 * 128}, 139 {280, 1, 25 * 128}, {281, 1, 26 * 128}, 140 141 - {0, 0}, 142 }; 143 144 static struct clk_factor_table lcd_factor_table[] = { ··· 151 {256, 1, 1 * 7}, {257, 1, 2 * 7}, {258, 1, 3 * 7}, {259, 1, 4 * 7}, 152 {260, 1, 5 * 7}, {261, 1, 6 * 7}, {262, 1, 7 * 7}, {263, 1, 8 * 7}, 153 {264, 1, 9 * 7}, {265, 1, 10 * 7}, {266, 1, 11 * 7}, {267, 1, 12 * 7}, 154 - {0, 0}, 155 }; 156 157 static struct clk_div_table hdmia_div_table[] = { 158 {0, 1}, {1, 2}, {2, 3}, {3, 4}, 159 {4, 6}, {5, 8}, {6, 12}, {7, 16}, 160 {8, 24}, 161 - {0, 0}, 162 }; 163 164 static struct clk_div_table rmii_div_table[] = { 165 {0, 4}, {1, 10}, 166 - {0, 0} 167 }; 168 169 /* divider clocks */ ··· 180 static struct clk_factor_table de_factor_table[] = { 181 {0, 1, 1}, {1, 2, 3}, {2, 1, 2}, {3, 2, 5}, 182 {4, 1, 3}, {5, 1, 4}, {6, 1, 6}, {7, 1, 8}, 183 - {8, 1, 12}, {0, 0, 0}, 184 }; 185 186 static struct clk_factor_table hde_factor_table[] = { 187 {0, 1, 1}, {1, 2, 3}, {2, 1, 2}, {3, 2, 5}, 188 {4, 1, 3}, {5, 1, 4}, {6, 1, 6}, {7, 1, 8}, 189 - {0, 0, 0}, 190 }; 191 192 /* gate clocks */
··· 73 74 static struct clk_pll_table clk_audio_pll_table[] = { 75 {0, 45158400}, {1, 49152000}, 76 + { /* sentinel */ } 77 }; 78 79 static struct clk_pll_table clk_cvbs_pll_table[] = { ··· 82 {33, 35 * 12000000}, {34, 36 * 12000000}, {35, 37 * 12000000}, 83 {36, 38 * 12000000}, {37, 39 * 12000000}, {38, 40 * 12000000}, 84 {39, 41 * 12000000}, {40, 42 * 12000000}, {41, 43 * 12000000}, 85 + {42, 44 * 12000000}, {43, 45 * 12000000}, 86 + { /* sentinel */ } 87 }; 88 89 /* pll clocks */ ··· 137 {276, 1, 21 * 128}, {277, 1, 22 * 128}, {278, 1, 23 * 128}, {279, 1, 24 * 128}, 138 {280, 1, 25 * 128}, {281, 1, 26 * 128}, 139 140 + { /* sentinel */ } 141 }; 142 143 static struct clk_factor_table lcd_factor_table[] = { ··· 150 {256, 1, 1 * 7}, {257, 1, 2 * 7}, {258, 1, 3 * 7}, {259, 1, 4 * 7}, 151 {260, 1, 5 * 7}, {261, 1, 6 * 7}, {262, 1, 7 * 7}, {263, 1, 8 * 7}, 152 {264, 1, 9 * 7}, {265, 1, 10 * 7}, {266, 1, 11 * 7}, {267, 1, 12 * 7}, 153 + { /* sentinel */ } 154 }; 155 156 static struct clk_div_table hdmia_div_table[] = { 157 {0, 1}, {1, 2}, {2, 3}, {3, 4}, 158 {4, 6}, {5, 8}, {6, 12}, {7, 16}, 159 {8, 24}, 160 + { /* sentinel */ } 161 }; 162 163 static struct clk_div_table rmii_div_table[] = { 164 {0, 4}, {1, 10}, 165 + { /* sentinel */ } 166 }; 167 168 /* divider clocks */ ··· 179 static struct clk_factor_table de_factor_table[] = { 180 {0, 1, 1}, {1, 2, 3}, {2, 1, 2}, {3, 2, 5}, 181 {4, 1, 3}, {5, 1, 4}, {6, 1, 6}, {7, 1, 8}, 182 + {8, 1, 12}, 183 + { /* sentinel */ } 184 }; 185 186 static struct clk_factor_table hde_factor_table[] = { 187 {0, 1, 1}, {1, 2, 3}, {2, 1, 2}, {3, 2, 5}, 188 {4, 1, 3}, {5, 1, 4}, {6, 1, 6}, {7, 1, 8}, 189 + { /* sentinel */ } 190 }; 191 192 /* gate clocks */
+13 -13
drivers/clk/actions/owl-s900.c
··· 73 74 static struct clk_pll_table clk_audio_pll_table[] = { 75 { 0, 45158400 }, { 1, 49152000 }, 76 - { 0, 0 }, 77 }; 78 79 static struct clk_pll_table clk_edp_pll_table[] = { 80 { 0, 810000000 }, { 1, 135000000 }, { 2, 270000000 }, 81 - { 0, 0 }, 82 }; 83 84 /* pll clocks */ ··· 120 { 4, 8 }, { 5, 10 }, { 6, 12 }, { 7, 14 }, 121 { 8, 16 }, { 9, 18 }, { 10, 20 }, { 11, 22 }, 122 { 12, 24 }, { 13, 26 }, { 14, 28 }, { 15, 30 }, 123 - { 0, 0 }, 124 }; 125 126 static struct clk_div_table apb_div_table[] = { 127 { 1, 2 }, { 2, 3 }, { 3, 4 }, 128 - { 0, 0 }, 129 }; 130 131 static struct clk_div_table eth_mac_div_table[] = { 132 { 0, 2 }, { 1, 4 }, 133 - { 0, 0 }, 134 }; 135 136 static struct clk_div_table rmii_ref_div_table[] = { 137 { 0, 4 }, { 1, 10 }, 138 - { 0, 0 }, 139 }; 140 141 static struct clk_div_table usb3_mac_div_table[] = { 142 { 1, 2 }, { 2, 3 }, { 3, 4 }, 143 - { 0, 0 } 144 }; 145 146 static struct clk_div_table i2s_div_table[] = { 147 { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, 148 { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, 149 { 8, 24 }, 150 - { 0, 0 }, 151 }; 152 153 static struct clk_div_table hdmia_div_table[] = { 154 { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, 155 { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, 156 { 8, 24 }, 157 - { 0, 0 }, 158 }; 159 160 /* divider clocks */ ··· 185 { 280, 1, 25 * 128 }, { 281, 1, 26 * 128 }, { 282, 1, 27 * 128 }, { 283, 1, 28 * 128 }, 186 { 284, 1, 29 * 128 }, { 285, 1, 30 * 128 }, { 286, 1, 31 * 128 }, { 287, 1, 32 * 128 }, 187 188 - { 0, 0 }, 189 }; 190 191 static struct clk_factor_table dmm_factor_table[] = { 192 { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 1, 3 }, 193 { 4, 1, 4 }, 194 - { 0, 0, 0 }, 195 }; 196 197 static struct clk_factor_table noc_factor_table[] = { 198 { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 1, 3 }, { 4, 1, 4 }, 199 - { 0, 0, 0 }, 200 }; 201 202 static struct clk_factor_table bisp_factor_table[] = { 203 { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, 204 { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, 205 - { 0, 0, 0 }, 206 }; 207 208 /* factor clocks */
··· 73 74 static struct clk_pll_table clk_audio_pll_table[] = { 75 { 0, 45158400 }, { 1, 49152000 }, 76 + { /* sentinel */ } 77 }; 78 79 static struct clk_pll_table clk_edp_pll_table[] = { 80 { 0, 810000000 }, { 1, 135000000 }, { 2, 270000000 }, 81 + { /* sentinel */ } 82 }; 83 84 /* pll clocks */ ··· 120 { 4, 8 }, { 5, 10 }, { 6, 12 }, { 7, 14 }, 121 { 8, 16 }, { 9, 18 }, { 10, 20 }, { 11, 22 }, 122 { 12, 24 }, { 13, 26 }, { 14, 28 }, { 15, 30 }, 123 + { /* sentinel */ } 124 }; 125 126 static struct clk_div_table apb_div_table[] = { 127 { 1, 2 }, { 2, 3 }, { 3, 4 }, 128 + { /* sentinel */ } 129 }; 130 131 static struct clk_div_table eth_mac_div_table[] = { 132 { 0, 2 }, { 1, 4 }, 133 + { /* sentinel */ } 134 }; 135 136 static struct clk_div_table rmii_ref_div_table[] = { 137 { 0, 4 }, { 1, 10 }, 138 + { /* sentinel */ } 139 }; 140 141 static struct clk_div_table usb3_mac_div_table[] = { 142 { 1, 2 }, { 2, 3 }, { 3, 4 }, 143 + { /* sentinel */ } 144 }; 145 146 static struct clk_div_table i2s_div_table[] = { 147 { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, 148 { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, 149 { 8, 24 }, 150 + { /* sentinel */ } 151 }; 152 153 static struct clk_div_table hdmia_div_table[] = { 154 { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, 155 { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, 156 { 8, 24 }, 157 + { /* sentinel */ } 158 }; 159 160 /* divider clocks */ ··· 185 { 280, 1, 25 * 128 }, { 281, 1, 26 * 128 }, { 282, 1, 27 * 128 }, { 283, 1, 28 * 128 }, 186 { 284, 1, 29 * 128 }, { 285, 1, 30 * 128 }, { 286, 1, 31 * 128 }, { 287, 1, 32 * 128 }, 187 188 + { /* sentinel */ } 189 }; 190 191 static struct clk_factor_table dmm_factor_table[] = { 192 { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 1, 3 }, 193 { 4, 1, 4 }, 194 + { /* sentinel */ } 195 }; 196 197 static struct clk_factor_table noc_factor_table[] = { 198 { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 1, 3 }, { 4, 1, 4 }, 199 + { /* sentinel */ } 200 }; 201 202 static struct clk_factor_table bisp_factor_table[] = { 203 { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, 204 { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, 205 + { /* sentinel */ } 206 }; 207 208 /* factor clocks */