Signed-off-by: Hauke Mehrtens <[email protected]>
---
backport/backport-include/linux/regulator/driver.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/backport/backport-include/linux/regulator/driver.h
b/backport/backport-include/linux/regulator/driver.h
index e1604bf..532eba0 100644
--- a/backport/backport-include/linux/regulator/driver.h
+++ b/backport/backport-include/linux/regulator/driver.h
@@ -35,4 +35,15 @@ void devm_regulator_unregister(struct device *dev, struct
regulator_dev *rdev);
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)) &&
(LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) */
+#ifndef REGULATOR_LINEAR_RANGE
+/* Initialize struct regulator_linear_range */
+#define REGULATOR_LINEAR_RANGE(_min_uV, _min_sel, _max_sel, _step_uV) \
+{ \
+ .min_uV = _min_uV, \
+ .min_sel = _min_sel, \
+ .max_sel = _max_sel, \
+ .uV_step = _step_uV, \
+}
+#endif
+
#endif /* __BACKPORT_LINUX_REGULATOR_DRIVER_H_ */
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html