]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/kernel/omap/panda/0007-Revert-regulator-twl-Remove-TWL6030_FIXED_RESOURCE.patch
asterisk addon: update to 11.13.1
[ipfire-2.x.git] / src / patches / kernel / omap / panda / 0007-Revert-regulator-twl-Remove-TWL6030_FIXED_RESOURCE.patch
CommitLineData
d006af40
AF
1From 42d8b74383b670412107c943efd2fec46aa04158 Mon Sep 17 00:00:00 2001
2From: Robert Nelson <robertcnelson@gmail.com>
3Date: Sat, 1 Jun 2013 16:32:46 -0500
4Subject: [PATCH 07/10] Revert "regulator: twl: Remove TWL6030_FIXED_RESOURCE"
5
6This reverts commit d1924519fe1dada0cfd9a228bf2ff1ea15840c84.
7
8Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
9---
10 drivers/regulator/twl-regulator.c | 13 +++++++++++++
11 1 file changed, 13 insertions(+)
12
13diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c
14index fb6e67d..7ce7edf 100644
15--- a/drivers/regulator/twl-regulator.c
16+++ b/drivers/regulator/twl-regulator.c
17@@ -933,6 +933,19 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \
18 }, \
19 }
20
21+#define TWL6030_FIXED_RESOURCE(label, offset, turnon_delay) \
22+static struct twlreg_info TWLRES_INFO_##label = { \
23+ .base = offset, \
24+ .desc = { \
25+ .name = #label, \
26+ .id = TWL6030_REG_##label, \
27+ .ops = &twl6030_fixed_resource, \
28+ .type = REGULATOR_VOLTAGE, \
29+ .owner = THIS_MODULE, \
30+ .enable_time = turnon_delay, \
31+ }, \
32+ }
33+
34 #define TWL6025_ADJUSTABLE_SMPS(label, offset) \
35 static const struct twlreg_info TWLSMPS_INFO_##label = { \
36 .base = offset, \
37--
381.7.10.4
39