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>
This commit is contained in:
Krzysztof Kozlowski 2026-03-23 10:20:53 +01:00 committed by Lee Jones
parent d6e0ef4468
commit 70910aadff

View File

@ -157,7 +157,7 @@ static int kb3930_probe(struct i2c_client *client)
if (ret)
return ret;
if (of_property_read_bool(np, "system-power-controller")) {
if (of_device_is_system_power_controller(np)) {
ddata->off_gpios =
devm_gpiod_get_array_optional(dev, "off", GPIOD_IN);
if (IS_ERR(ddata->off_gpios))