Commit 70910aad authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Lee Jones
Browse files

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260323092052.64684-2-krzysztof.kozlowski@oss.qualcomm.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent d6e0ef44
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))