Sfoglia il codice sorgente

mfd: sec: Cleanup unused RTC fields: ono, WTSR and SMPL

The WTSR (Watchdog Timer Software Reset) and SMPL (Sudden Momentary
Power Loss) were removed from rtc-s5m driver because they were not used.
Remove them (and on/off interrupt) from main MFD driver and header.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Krzysztof Kozlowski 10 anni fa
parent
commit
ef9c80b37a
2 ha cambiato i file con 0 aggiunte e 10 eliminazioni
  1. 0 1
      drivers/mfd/sec-core.c
  2. 0 9
      include/linux/mfd/samsung/core.h

+ 0 - 1
drivers/mfd/sec-core.c

@@ -333,7 +333,6 @@ static int sec_pmic_probe(struct i2c_client *i2c,
 	}
 	}
 	if (pdata) {
 	if (pdata) {
 		sec_pmic->device_type = pdata->device_type;
 		sec_pmic->device_type = pdata->device_type;
-		sec_pmic->ono = pdata->ono;
 		sec_pmic->irq_base = pdata->irq_base;
 		sec_pmic->irq_base = pdata->irq_base;
 		sec_pmic->wakeup = pdata->wakeup;
 		sec_pmic->wakeup = pdata->wakeup;
 		sec_pmic->pdata = pdata;
 		sec_pmic->pdata = pdata;

+ 0 - 9
include/linux/mfd/samsung/core.h

@@ -58,13 +58,7 @@ enum sec_device_type {
  * @irq_base:		Base IRQ number for device, required for IRQs
  * @irq_base:		Base IRQ number for device, required for IRQs
  * @irq:		Generic IRQ number for device
  * @irq:		Generic IRQ number for device
  * @irq_data:		Runtime data structure for IRQ controller
  * @irq_data:		Runtime data structure for IRQ controller
- * @ono:		Power onoff IRQ number for s5m87xx
  * @wakeup:		Whether or not this is a wakeup device
  * @wakeup:		Whether or not this is a wakeup device
- * @wtsr_smpl:		Whether or not to enable in RTC driver the Watchdog
- *			Timer Software Reset (registers set to default value
- *			after PWRHOLD falling) and Sudden Momentary Power Loss
- *			(PMIC will enter power on sequence after short drop in
- *			VBATT voltage).
  */
  */
 struct sec_pmic_dev {
 struct sec_pmic_dev {
 	struct device *dev;
 	struct device *dev;
@@ -77,9 +71,7 @@ struct sec_pmic_dev {
 	int irq;
 	int irq;
 	struct regmap_irq_chip_data *irq_data;
 	struct regmap_irq_chip_data *irq_data;
 
 
-	int ono;
 	bool wakeup;
 	bool wakeup;
-	bool wtsr_smpl;
 };
 };
 
 
 int sec_irq_init(struct sec_pmic_dev *sec_pmic);
 int sec_irq_init(struct sec_pmic_dev *sec_pmic);
@@ -95,7 +87,6 @@ struct sec_platform_data {
 	int				irq_base;
 	int				irq_base;
 	int				(*cfg_pmic_irq)(void);
 	int				(*cfg_pmic_irq)(void);
 
 
-	int				ono;
 	bool				wakeup;
 	bool				wakeup;
 	bool				buck_voltage_lock;
 	bool				buck_voltage_lock;