mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
PM / devfreq: Use of_node_name_eq for node name comparisons
Convert string compares of DT node names to use of_node_name_eq helper instead. This removes direct access to the node name pointer. For instances using of_node_cmp, this has the side effect of now using case sensitive comparisons. This should not matter for any FDT based system which all of these are. Cc: Chanwoo Choi <[email protected]> Cc: MyungJoo Ham <[email protected]> Cc: Kyungmin Park <[email protected]> Cc: Kukjin Kim <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Signed-off-by: MyungJoo Ham <[email protected]>
This commit is contained in:
1 parent
dc4060a5dc
commit
0d00a239f7
2 files changed
+2
-2
No files matched your search
@@ -240,7 +240,7 @@ struct devfreq_event_dev *devfreq_event_get_edev_by_phandle(struct device *dev,
|
||||
}
|
||||
|
||||
list_for_each_entry(edev, &devfreq_event_list, node) {
|
||||
if (!strcmp(edev->desc->name, node->name))
|
||||
if (of_node_name_eq(node, edev->desc->name))
|
||||
goto out;
|
||||
}
|
||||
edev = NULL;
|
||||
|
||||
@@ -529,7 +529,7 @@ static int of_get_devfreq_events(struct device_node *np,
|
||||
if (!ppmu_events[i].name)
|
||||
continue;
|
||||
|
||||
if (!of_node_cmp(node->name, ppmu_events[i].name))
|
||||
if (of_node_name_eq(node, ppmu_events[i].name))
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user