Sfoglia il codice sorgente

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 11 anni fa
parent
commit
8669544a78
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  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;