diff options
Diffstat (limited to 'backport/compat/backport-3.10.c')
-rw-r--r-- | backport/compat/backport-3.10.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/backport/compat/backport-3.10.c b/backport/compat/backport-3.10.c index e75e52ed..53123fb1 100644 --- a/backport/compat/backport-3.10.c +++ b/backport/compat/backport-3.10.c @@ -19,59 +19,6 @@ #include <linux/of.h> #include <linux/mm.h> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)) -#include <linux/init.h> -#include <linux/debugfs.h> -#include <linux/device.h> -#include <linux/slab.h> -#include <linux/async.h> -#include <linux/mutex.h> -#include <linux/suspend.h> -#include <linux/delay.h> -#include <linux/gpio.h> -#include <linux/regmap.h> -#include <linux/regulator/of_regulator.h> -#include <linux/regulator/consumer.h> -#include <linux/regulator/driver.h> -#include <linux/regulator/machine.h> -#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)) */ - -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)) -#ifdef CONFIG_REGULATOR -/** - * regulator_map_voltage_ascend - map_voltage() for ascendant voltage list - * - * @rdev: Regulator to operate on - * @min_uV: Lower bound for voltage - * @max_uV: Upper bound for voltage - * - * Drivers that have ascendant voltage list can use this as their - * map_voltage() operation. - */ -int regulator_map_voltage_ascend(struct regulator_dev *rdev, - int min_uV, int max_uV) -{ - int i, ret; - - for (i = 0; i < rdev->desc->n_voltages; i++) { - ret = rdev->desc->ops->list_voltage(rdev, i); - if (ret < 0) - continue; - - if (ret > max_uV) - break; - - if (ret >= min_uV && ret <= max_uV) - return i; - } - - return -EINVAL; -} -EXPORT_SYMBOL_GPL(regulator_map_voltage_ascend); - -#endif /* CONFIG_REGULATOR */ -#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)) */ - void proc_set_size(struct proc_dir_entry *de, loff_t size) { de->size = size; |