aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/abx500.h1
-rw-r--r--include/linux/mfd/abx500/ab8500-bm.h2
-rw-r--r--include/linux/mfd/abx500/ux500_chargalg.h4
-rw-r--r--include/linux/mfd/arizona/pdata.h3
-rw-r--r--include/linux/mfd/as3711.h4
-rw-r--r--include/linux/mfd/axp20x.h10
-rw-r--r--include/linux/mfd/bd9571mwv.h5
-rw-r--r--include/linux/mfd/cros_ec.h20
-rw-r--r--include/linux/mfd/lp8788.h16
-rw-r--r--include/linux/mfd/rave-sp.h1
-rw-r--r--include/linux/mfd/samsung/core.h4
-rw-r--r--include/linux/mfd/stm32-timers.h70
-rw-r--r--include/linux/mfd/syscon/exynos4-pmu.h21
-rw-r--r--include/linux/mfd/syscon/exynos5-pmu.h19
-rw-r--r--include/linux/mfd/tps65090.h8
-rw-r--r--include/linux/mfd/tps65218.h4
-rw-r--r--include/linux/mfd/tps6586x.h1
-rw-r--r--include/linux/mfd/tps68470.h17
18 files changed, 101 insertions, 109 deletions
diff --git a/include/linux/mfd/abx500.h b/include/linux/mfd/abx500.h
index 44412c9d26e1..aa09414756db 100644
--- a/include/linux/mfd/abx500.h
+++ b/include/linux/mfd/abx500.h
@@ -271,7 +271,6 @@ struct abx500_bm_data {
271 bool autopower_cfg; 271 bool autopower_cfg;
272 bool ac_enabled; 272 bool ac_enabled;
273 bool usb_enabled; 273 bool usb_enabled;
274 bool usb_power_path;
275 bool no_maintenance; 274 bool no_maintenance;
276 bool capacity_scaling; 275 bool capacity_scaling;
277 bool chg_unknown_bat; 276 bool chg_unknown_bat;
diff --git a/include/linux/mfd/abx500/ab8500-bm.h b/include/linux/mfd/abx500/ab8500-bm.h
index e63681eb6c62..c06daf3d490a 100644
--- a/include/linux/mfd/abx500/ab8500-bm.h
+++ b/include/linux/mfd/abx500/ab8500-bm.h
@@ -248,8 +248,6 @@ enum bup_vch_sel {
248#define BAT_CTRL_20U_ENA 0x02 248#define BAT_CTRL_20U_ENA 0x02
249#define BAT_CTRL_18U_ENA 0x01 249#define BAT_CTRL_18U_ENA 0x01
250#define BAT_CTRL_16U_ENA 0x02 250#define BAT_CTRL_16U_ENA 0x02
251#define BAT_CTRL_60U_ENA 0x01
252#define BAT_CTRL_120U_ENA 0x02
253#define BAT_CTRL_CMP_ENA 0x04 251#define BAT_CTRL_CMP_ENA 0x04
254#define FORCE_BAT_CTRL_CMP_HIGH 0x08 252#define FORCE_BAT_CTRL_CMP_HIGH 0x08
255#define BAT_CTRL_PULL_UP_ENA 0x10 253#define BAT_CTRL_PULL_UP_ENA 0x10
diff --git a/include/linux/mfd/abx500/ux500_chargalg.h b/include/linux/mfd/abx500/ux500_chargalg.h
index 67703f23e7ba..669894f434f5 100644
--- a/include/linux/mfd/abx500/ux500_chargalg.h
+++ b/include/linux/mfd/abx500/ux500_chargalg.h
@@ -25,8 +25,6 @@ struct ux500_charger_ops {
25 int (*check_enable) (struct ux500_charger *, int, int); 25 int (*check_enable) (struct ux500_charger *, int, int);
26 int (*kick_wd) (struct ux500_charger *); 26 int (*kick_wd) (struct ux500_charger *);
27 int (*update_curr) (struct ux500_charger *, int); 27 int (*update_curr) (struct ux500_charger *, int);
28 int (*pp_enable) (struct ux500_charger *, bool);
29 int (*pre_chg_enable) (struct ux500_charger *, bool);
30}; 28};
31 29
32/** 30/**
@@ -37,7 +35,6 @@ struct ux500_charger_ops {
37 * @max_out_curr maximum output charger current in mA 35 * @max_out_curr maximum output charger current in mA
38 * @enabled indicates if this charger is used or not 36 * @enabled indicates if this charger is used or not
39 * @external external charger unit (pm2xxx) 37 * @external external charger unit (pm2xxx)
40 * @power_path USB power path support
41 */ 38 */
42struct ux500_charger { 39struct ux500_charger {
43 struct power_supply *psy; 40 struct power_supply *psy;
@@ -47,7 +44,6 @@ struct ux500_charger {
47 int wdt_refresh; 44 int wdt_refresh;
48 bool enabled; 45 bool enabled;
49 bool external; 46 bool external;
50 bool power_path;
51}; 47};
52 48
53extern struct blocking_notifier_head charger_notifier_list; 49extern struct blocking_notifier_head charger_notifier_list;
diff --git a/include/linux/mfd/arizona/pdata.h b/include/linux/mfd/arizona/pdata.h
index f72dc53848d7..0013075d4cda 100644
--- a/include/linux/mfd/arizona/pdata.h
+++ b/include/linux/mfd/arizona/pdata.h
@@ -56,6 +56,7 @@
56#define ARIZONA_MAX_PDM_SPK 2 56#define ARIZONA_MAX_PDM_SPK 2
57 57
58struct regulator_init_data; 58struct regulator_init_data;
59struct gpio_desc;
59 60
60struct arizona_micbias { 61struct arizona_micbias {
61 int mV; /** Regulated voltage */ 62 int mV; /** Regulated voltage */
@@ -77,7 +78,7 @@ struct arizona_micd_range {
77}; 78};
78 79
79struct arizona_pdata { 80struct arizona_pdata {
80 int reset; /** GPIO controlling /RESET, if any */ 81 struct gpio_desc *reset; /** GPIO controlling /RESET, if any */
81 82
82 /** Regulator configuration for MICVDD */ 83 /** Regulator configuration for MICVDD */
83 struct arizona_micsupp_pdata micvdd; 84 struct arizona_micsupp_pdata micvdd;
diff --git a/include/linux/mfd/as3711.h b/include/linux/mfd/as3711.h
index 34cc85864be5..ddd0b953323b 100644
--- a/include/linux/mfd/as3711.h
+++ b/include/linux/mfd/as3711.h
@@ -108,9 +108,9 @@ struct as3711_regulator_pdata {
108}; 108};
109 109
110struct as3711_bl_pdata { 110struct as3711_bl_pdata {
111 const char *su1_fb; 111 bool su1_fb;
112 int su1_max_uA; 112 int su1_max_uA;
113 const char *su2_fb; 113 bool su2_fb;
114 int su2_max_uA; 114 int su2_max_uA;
115 enum as3711_su2_feedback su2_feedback; 115 enum as3711_su2_feedback su2_feedback;
116 enum as3711_su2_fbprot su2_fbprot; 116 enum as3711_su2_fbprot su2_fbprot;
diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h
index 82bf7747b312..517e60eecbcb 100644
--- a/include/linux/mfd/axp20x.h
+++ b/include/linux/mfd/axp20x.h
@@ -592,11 +592,11 @@ enum axp806_irqs {
592 AXP806_IRQ_DCDCC_V_LOW, 592 AXP806_IRQ_DCDCC_V_LOW,
593 AXP806_IRQ_DCDCD_V_LOW, 593 AXP806_IRQ_DCDCD_V_LOW,
594 AXP806_IRQ_DCDCE_V_LOW, 594 AXP806_IRQ_DCDCE_V_LOW,
595 AXP806_IRQ_PWROK_LONG, 595 AXP806_IRQ_POK_LONG,
596 AXP806_IRQ_PWROK_SHORT, 596 AXP806_IRQ_POK_SHORT,
597 AXP806_IRQ_WAKEUP, 597 AXP806_IRQ_WAKEUP,
598 AXP806_IRQ_PWROK_FALL, 598 AXP806_IRQ_POK_FALL,
599 AXP806_IRQ_PWROK_RISE, 599 AXP806_IRQ_POK_RISE,
600}; 600};
601 601
602enum axp809_irqs { 602enum axp809_irqs {
@@ -642,7 +642,7 @@ struct axp20x_dev {
642 struct regmap_irq_chip_data *regmap_irqc; 642 struct regmap_irq_chip_data *regmap_irqc;
643 long variant; 643 long variant;
644 int nr_cells; 644 int nr_cells;
645 struct mfd_cell *cells; 645 const struct mfd_cell *cells;
646 const struct regmap_config *regmap_cfg; 646 const struct regmap_config *regmap_cfg;
647 const struct regmap_irq_chip *regmap_irq_chip; 647 const struct regmap_irq_chip *regmap_irq_chip;
648}; 648};
diff --git a/include/linux/mfd/bd9571mwv.h b/include/linux/mfd/bd9571mwv.h
index f0708ba4cbba..eb05569f752b 100644
--- a/include/linux/mfd/bd9571mwv.h
+++ b/include/linux/mfd/bd9571mwv.h
@@ -33,6 +33,11 @@
33#define BD9571MWV_I2C_MD2_E1_BIT_2 0x12 33#define BD9571MWV_I2C_MD2_E1_BIT_2 0x12
34 34
35#define BD9571MWV_BKUP_MODE_CNT 0x20 35#define BD9571MWV_BKUP_MODE_CNT 0x20
36#define BD9571MWV_BKUP_MODE_CNT_KEEPON_MASK GENMASK(3, 0)
37#define BD9571MWV_BKUP_MODE_CNT_KEEPON_DDR0 BIT(0)
38#define BD9571MWV_BKUP_MODE_CNT_KEEPON_DDR1 BIT(1)
39#define BD9571MWV_BKUP_MODE_CNT_KEEPON_DDR0C BIT(2)
40#define BD9571MWV_BKUP_MODE_CNT_KEEPON_DDR1C BIT(3)
36#define BD9571MWV_BKUP_MODE_STATUS 0x21 41#define BD9571MWV_BKUP_MODE_STATUS 0x21
37#define BD9571MWV_BKUP_RECOVERY_CNT 0x22 42#define BD9571MWV_BKUP_RECOVERY_CNT 0x22
38#define BD9571MWV_BKUP_CTRL_TIM_CNT 0x23 43#define BD9571MWV_BKUP_CTRL_TIM_CNT 0x23
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h
index f09e9cf2e4ab..32421dfeb996 100644
--- a/include/linux/mfd/cros_ec.h
+++ b/include/linux/mfd/cros_ec.h
@@ -329,23 +329,7 @@ extern struct attribute_group cros_ec_vbc_attr_group;
329/* debugfs stuff */ 329/* debugfs stuff */
330int cros_ec_debugfs_init(struct cros_ec_dev *ec); 330int cros_ec_debugfs_init(struct cros_ec_dev *ec);
331void cros_ec_debugfs_remove(struct cros_ec_dev *ec); 331void cros_ec_debugfs_remove(struct cros_ec_dev *ec);
332 332void cros_ec_debugfs_suspend(struct cros_ec_dev *ec);
333/* ACPI GPE handler */ 333void cros_ec_debugfs_resume(struct cros_ec_dev *ec);
334#ifdef CONFIG_ACPI
335
336int cros_ec_acpi_install_gpe_handler(struct device *dev);
337void cros_ec_acpi_remove_gpe_handler(void);
338void cros_ec_acpi_clear_gpe(void);
339
340#else /* CONFIG_ACPI */
341
342static inline int cros_ec_acpi_install_gpe_handler(struct device *dev)
343{
344 return -ENODEV;
345}
346static inline void cros_ec_acpi_remove_gpe_handler(void) {}
347static inline void cros_ec_acpi_clear_gpe(void) {}
348
349#endif /* CONFIG_ACPI */
350 334
351#endif /* __LINUX_MFD_CROS_EC_H */ 335#endif /* __LINUX_MFD_CROS_EC_H */
diff --git a/include/linux/mfd/lp8788.h b/include/linux/mfd/lp8788.h
index 786bf6679a28..2010e0de3e34 100644
--- a/