diff options
Diffstat (limited to 'include/linux/regulator')
| -rw-r--r-- | include/linux/regulator/consumer.h | 6 | ||||
| -rw-r--r-- | include/linux/regulator/da9211.h | 5 | ||||
| -rw-r--r-- | include/linux/regulator/mt6323-regulator.h | 52 | 
3 files changed, 56 insertions, 7 deletions
| diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 48603506f8de..cae500b2c1d7 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -224,7 +224,6 @@ int regulator_bulk_force_disable(int num_consumers,  void regulator_bulk_free(int num_consumers,  			 struct regulator_bulk_data *consumers); -int regulator_can_change_voltage(struct regulator *regulator);  int regulator_count_voltages(struct regulator *regulator);  int regulator_list_voltage(struct regulator *regulator, unsigned selector);  int regulator_is_supported_voltage(struct regulator *regulator, @@ -436,11 +435,6 @@ static inline void regulator_bulk_free(int num_consumers,  {  } -static inline int regulator_can_change_voltage(struct regulator *regulator) -{ -	return 0; -} -  static inline int regulator_set_voltage(struct regulator *regulator,  					int min_uV, int max_uV)  { diff --git a/include/linux/regulator/da9211.h b/include/linux/regulator/da9211.h index a43a5ca1167b..80cb40b7c88d 100644 --- a/include/linux/regulator/da9211.h +++ b/include/linux/regulator/da9211.h @@ -1,5 +1,6 @@  /* - * da9211.h - Regulator device driver for DA9211/DA9213/DA9215 + * da9211.h - Regulator device driver for DA9211/DA9212 + * /DA9213/DA9214/DA9215   * Copyright (C) 2015  Dialog Semiconductor Ltd.   *   * This program is free software; you can redistribute it and/or @@ -22,7 +23,9 @@  enum da9211_chip_id {  	DA9211, +	DA9212,  	DA9213, +	DA9214,  	DA9215,  }; diff --git a/include/linux/regulator/mt6323-regulator.h b/include/linux/regulator/mt6323-regulator.h new file mode 100644 index 000000000000..67011cd1ce55 --- /dev/null +++ b/include/linux/regulator/mt6323-regulator.h @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2016 MediaTek Inc. + * Author: Chen Zhong <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the + * GNU General Public License for more details. + */ + +#ifndef __LINUX_REGULATOR_MT6323_H +#define __LINUX_REGULATOR_MT6323_H + +enum { +	MT6323_ID_VPROC = 0, +	MT6323_ID_VSYS, +	MT6323_ID_VPA, +	MT6323_ID_VTCXO, +	MT6323_ID_VCN28, +	MT6323_ID_VCN33_BT, +	MT6323_ID_VCN33_WIFI, +	MT6323_ID_VA, +	MT6323_ID_VCAMA, +	MT6323_ID_VIO28 = 9, +	MT6323_ID_VUSB, +	MT6323_ID_VMC, +	MT6323_ID_VMCH, +	MT6323_ID_VEMC3V3, +	MT6323_ID_VGP1, +	MT6323_ID_VGP2, +	MT6323_ID_VGP3, +	MT6323_ID_VCN18, +	MT6323_ID_VSIM1, +	MT6323_ID_VSIM2, +	MT6323_ID_VRTC, +	MT6323_ID_VCAMAF, +	MT6323_ID_VIBR, +	MT6323_ID_VRF18, +	MT6323_ID_VM, +	MT6323_ID_VIO18, +	MT6323_ID_VCAMD, +	MT6323_ID_VCAMIO, +	MT6323_ID_RG_MAX, +}; + +#define MT6323_MAX_REGULATOR	MT6323_ID_RG_MAX + +#endif /* __LINUX_REGULATOR_MT6323_H */ |