Skip to content

Commit 4814d9c

Browse files
committed
cpufreq: dt: Rename black/white-lists
Rename them in accordance with the coding guidelines. Reviewed-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent b791c7f commit 4814d9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/cpufreq/cpufreq-dt-platdev.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Machines for which the cpufreq device is *always* created, mostly used for
1616
* platforms using "operating-points" (V1) property.
1717
*/
18-
static const struct of_device_id whitelist[] __initconst = {
18+
static const struct of_device_id allowlist[] __initconst = {
1919
{ .compatible = "allwinner,sun4i-a10", },
2020
{ .compatible = "allwinner,sun5i-a10s", },
2121
{ .compatible = "allwinner,sun5i-a13", },
@@ -100,7 +100,7 @@ static const struct of_device_id whitelist[] __initconst = {
100100
* Machines for which the cpufreq device is *not* created, mostly used for
101101
* platforms using "operating-points-v2" property.
102102
*/
103-
static const struct of_device_id blacklist[] __initconst = {
103+
static const struct of_device_id blocklist[] __initconst = {
104104
{ .compatible = "allwinner,sun50i-h6", },
105105

106106
{ .compatible = "arm,vexpress", },
@@ -179,13 +179,13 @@ static int __init cpufreq_dt_platdev_init(void)
179179
if (!np)
180180
return -ENODEV;
181181

182-
match = of_match_node(whitelist, np);
182+
match = of_match_node(allowlist, np);
183183
if (match) {
184184
data = match->data;
185185
goto create_pdev;
186186
}
187187

188-
if (cpu0_node_has_opp_v2_prop() && !of_match_node(blacklist, np))
188+
if (cpu0_node_has_opp_v2_prop() && !of_match_node(blocklist, np))
189189
goto create_pdev;
190190

191191
of_node_put(np);

0 commit comments

Comments
 (0)