Skip to content

Commit 70910aa

Browse files
krzklag-linaro
authored andcommitted
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>
1 parent d6e0ef4 commit 70910aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mfd/ene-kb3930.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static int kb3930_probe(struct i2c_client *client)
157157
if (ret)
158158
return ret;
159159

160-
if (of_property_read_bool(np, "system-power-controller")) {
160+
if (of_device_is_system_power_controller(np)) {
161161
ddata->off_gpios =
162162
devm_gpiod_get_array_optional(dev, "off", GPIOD_IN);
163163
if (IS_ERR(ddata->off_gpios))

0 commit comments

Comments
 (0)