Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: ene-kb3930: Use of_device_is_system_power_controller() wrapper

Instead of checking for exact device node property, use the
of_device_is_system_power_controller() wrapper.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260323092052.64684-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
70910aad d6e0ef44

+1 -1
+1 -1
drivers/mfd/ene-kb3930.c
··· 157 157 if (ret) 158 158 return ret; 159 159 160 - if (of_property_read_bool(np, "system-power-controller")) { 160 + if (of_device_is_system_power_controller(np)) { 161 161 ddata->off_gpios = 162 162 devm_gpiod_get_array_optional(dev, "off", GPIOD_IN); 163 163 if (IS_ERR(ddata->off_gpios))