Explorar o código

regulator: dummy: Should be always-on

Regulator dummy does not have any enable operations. So it is always_on.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Markus Pargmann %!s(int64=11) %!d(string=hai) anos
pai
achega
8669544a78
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      drivers/regulator/dummy.c

+ 5 - 1
drivers/regulator/dummy.c

@@ -25,7 +25,11 @@
 
 struct regulator_dev *dummy_regulator_rdev;
 
-static struct regulator_init_data dummy_initdata;
+static struct regulator_init_data dummy_initdata = {
+	.constraints = {
+		.always_on = 1,
+	},
+};
 
 static struct regulator_ops dummy_ops;