aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max77620.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-12-05 13:50:31 -0600
committerLee Jones <lee.jones@linaro.org>2019-01-03 08:32:42 +0000
commit38df91cc0b82d053234accf4429eafd2f5a4d401 (patch)
tree61cce6604edfdf21c867e61c56cdddfac8ec52d7 /drivers/mfd/max77620.c
parentmfd: cros_ec_dev: Add missing mfd_remove_devices() call in remove (diff)
downloadlinux-dev-38df91cc0b82d053234accf4429eafd2f5a4d401.tar.xz
linux-dev-38df91cc0b82d053234accf4429eafd2f5a4d401.zip
mfd: 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. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/max77620.c')
-rw-r--r--drivers/mfd/max77620.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c
index d8217366ed36..d8ddd1a6f304 100644
--- a/drivers/mfd/max77620.c
+++ b/drivers/mfd/max77620.c
@@ -280,7 +280,7 @@ static int max77620_config_fps(struct max77620_chip *chip,
for (fps_id = 0; fps_id < MAX77620_FPS_COUNT; fps_id++) {
sprintf(fps_name, "fps%d", fps_id);
- if (!strcmp(fps_np->name, fps_name))
+ if (of_node_name_eq(fps_np, fps_name))
break;
}