Skip to contentSkip to conversation

cpufreq: dt: Rename black/white-lists

PATCH In review Viresh Kumar 2 participants 2 messages May 20, 2021 – May 21, 2021 CPU frequency scaling framework

lore
Share & tools
lore

Viresh Kumar

author maintainer
#0 lore raw

PATCH 1/1 cpufreq: dt: Rename black/white-lists

Rename them in accordance with the coding guidelines.

---
 drivers/cpufreq/cpufreq-dt-platdev.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/cpufreq/cpufreq-dt-platdev.c +4 -4
index 0bb10402f02c..bef7528aecd3 100644
@@ -15,7 +15,7 @@
  * Machines for which the cpufreq device is *always* created, mostly used for
  * platforms using "operating-points" (V1) property.
  */
-static const struct of_device_id whitelist[] __initconst = {
+static const struct of_device_id allowlist[] __initconst = {
 	{ .compatible = "allwinner,sun4i-a10", },
 	{ .compatible = "allwinner,sun5i-a10s", },
 	{ .compatible = "allwinner,sun5i-a13", },
@@ -100,7 +100,7 @@ static const struct of_device_id whitelist[] __initconst = {
  * Machines for which the cpufreq device is *not* created, mostly used for
  * platforms using "operating-points-v2" property.
  */
-static const struct of_device_id blacklist[] __initconst = {
+static const struct of_device_id blocklist[] __initconst = {
 	{ .compatible = "allwinner,sun50i-h6", },
 
 	{ .compatible = "arm,vexpress", },
@@ -179,13 +179,13 @@ static int __init cpufreq_dt_platdev_init(void)
 	if (!np)
 		return -ENODEV;
 
-	match = of_match_node(whitelist, np);
+	match = of_match_node(allowlist, np);
 	if (match) {
 		data = match->data;
 		goto create_pdev;
 	}
 
-	if (cpu0_node_has_opp_v2_prop() && !of_match_node(blacklist, np))
+	if (cpu0_node_has_opp_v2_prop() && !of_match_node(blocklist, np))
 		goto create_pdev;
 
 	of_node_put(np);
Signature · 1 line
2.31.1.272.g89b43f80a514
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Viresh Kumar

Rename them in accordance with the coding guidelines.

FWIW

Quoted 45 lines
---
 drivers/cpufreq/cpufreq-dt-platdev.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/cpufreq/cpufreq-dt-platdev.c +4 -5
index 0bb10402f02c..bef7528aecd3 100644
@@ -15,7 +15,7 @@
  * Machines for which the cpufreq device is *always* created, mostly used for
  * platforms using "operating-points" (V1) property.
  */
-static const struct of_device_id whitelist[] __initconst = {
+static const struct of_device_id allowlist[] __initconst = {
        { .compatible = "allwinner,sun4i-a10", },
        { .compatible = "allwinner,sun5i-a10s", },
        { .compatible = "allwinner,sun5i-a13", },
@@ -100,7 +100,7 @@ static const struct of_device_id whitelist[] __initconst = {
  * Machines for which the cpufreq device is *not* created, mostly used for
  * platforms using "operating-points-v2" property.
  */
-static const struct of_device_id blacklist[] __initconst = {
+static const struct of_device_id blocklist[] __initconst = {
        { .compatible = "allwinner,sun50i-h6", },
 
        { .compatible = "arm,vexpress", },
@@ -179,13 +179,13 @@ static int __init cpufreq_dt_platdev_init(void)
        if (!np)
                return -ENODEV;
 
-       match = of_match_node(whitelist, np);
+       match = of_match_node(allowlist, np);
        if (match) {
                data = match->data;
                goto create_pdev;
        }
 
-       if (cpu0_node_has_opp_v2_prop() && !of_match_node(blacklist, np))
+       if (cpu0_node_has_opp_v2_prop() && !of_match_node(blocklist, np))
                goto create_pdev;
 
        of_node_put(np);
--

2.31.1.272.g89b43f80a514