Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 896b65f3 authored by Michał Mirosław's avatar Michał Mirosław Committed by Mark Brown
Browse files

regulator: show state for GPIO-controlled regulators

parent a451405f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3208,7 +3208,7 @@ static int add_regulator_attributes(struct regulator_dev *rdev)
		if (status < 0)
			return status;
	}
	if (ops->is_enabled) {
	if (rdev->ena_gpio || ops->is_enabled) {
		status = device_create_file(dev, &dev_attr_state);
		if (status < 0)
			return status;