mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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:
parent
d6e0ef4468
commit
70910aadff
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user