diff options
| author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-10-11 07:55:32 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-11-13 13:54:23 -0500 |
| commit | ab7edb149c7548541ee588b8372c2041b6f1cbc8 (patch) | |
| tree | 12bff6036c4eed3683e007e3fa890d1453666edf /include/linux/mfd | |
| parent | 1ac96265a6f35080083e85b0f58182cdc9c07d0e (diff) | |
mfd: twl6040: Convert to use regmap_irq
With regmap_irq it is possible to remove the twl6040-irq.c file and
simplify the code.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/twl6040.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h index a8eff4ad9be5..94ac944d12f0 100644 --- a/include/linux/mfd/twl6040.h +++ b/include/linux/mfd/twl6040.h | |||
| @@ -207,10 +207,12 @@ struct twl6040_platform_data { | |||
| 207 | }; | 207 | }; |
| 208 | 208 | ||
| 209 | struct regmap; | 209 | struct regmap; |
| 210 | struct regmap_irq_chips_data; | ||
| 210 | 211 | ||
| 211 | struct twl6040 { | 212 | struct twl6040 { |
| 212 | struct device *dev; | 213 | struct device *dev; |
| 213 | struct regmap *regmap; | 214 | struct regmap *regmap; |
| 215 | struct regmap_irq_chip_data *irq_data; | ||
| 214 | struct regulator_bulk_data supplies[2]; /* supplies for vio, v2v1 */ | 216 | struct regulator_bulk_data supplies[2]; /* supplies for vio, v2v1 */ |
| 215 | struct mutex mutex; | 217 | struct mutex mutex; |
| 216 | struct mutex irq_mutex; | 218 | struct mutex irq_mutex; |
| @@ -228,9 +230,8 @@ struct twl6040 { | |||
| 228 | unsigned int mclk; | 230 | unsigned int mclk; |
| 229 | 231 | ||
| 230 | unsigned int irq; | 232 | unsigned int irq; |
| 231 | unsigned int irq_base; | 233 | unsigned int irq_ready; |
| 232 | u8 irq_masks_cur; | 234 | unsigned int irq_th; |
| 233 | u8 irq_masks_cache; | ||
| 234 | }; | 235 | }; |
| 235 | 236 | ||
| 236 | int twl6040_reg_read(struct twl6040 *twl6040, unsigned int reg); | 237 | int twl6040_reg_read(struct twl6040 *twl6040, unsigned int reg); |
| @@ -245,8 +246,7 @@ int twl6040_set_pll(struct twl6040 *twl6040, int pll_id, | |||
| 245 | unsigned int freq_in, unsigned int freq_out); | 246 | unsigned int freq_in, unsigned int freq_out); |
| 246 | int twl6040_get_pll(struct twl6040 *twl6040); | 247 | int twl6040_get_pll(struct twl6040 *twl6040); |
| 247 | unsigned int twl6040_get_sysclk(struct twl6040 *twl6040); | 248 | unsigned int twl6040_get_sysclk(struct twl6040 *twl6040); |
| 248 | int twl6040_irq_init(struct twl6040 *twl6040); | 249 | |
| 249 | void twl6040_irq_exit(struct twl6040 *twl6040); | ||
| 250 | /* Get the combined status of the vibra control register */ | 250 | /* Get the combined status of the vibra control register */ |
| 251 | int twl6040_get_vibralr_status(struct twl6040 *twl6040); | 251 | int twl6040_get_vibralr_status(struct twl6040 *twl6040); |
| 252 | 252 | ||
