diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-18 17:38:20 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-18 17:38:20 -0400 |
| commit | c592c761a36286ab83451daa37a21c8558ea99c0 (patch) | |
| tree | 8abf57708fabf2a915320e9515b1ae2730ebf499 /include/linux/mfd | |
| parent | 63236f4038f7e14762114606d95769c32cf6cac1 (diff) | |
| parent | 33499df88b711725ee473ab5478e17efd21de4b0 (diff) | |
Merge remote-tracking branch 'regulator/topic/stub' into regulator-next
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/mcp.h | 12 | ||||
| -rw-r--r-- | include/linux/mfd/twl6040.h | 2 | ||||
| -rw-r--r-- | include/linux/mfd/ucb1x00.h | 5 |
3 files changed, 9 insertions, 10 deletions
diff --git a/include/linux/mfd/mcp.h b/include/linux/mfd/mcp.h index 1515e64e3663..f88c1cc0cb0f 100644 --- a/include/linux/mfd/mcp.h +++ b/include/linux/mfd/mcp.h | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | #ifndef MCP_H | 10 | #ifndef MCP_H |
| 11 | #define MCP_H | 11 | #define MCP_H |
| 12 | 12 | ||
| 13 | #include <linux/mod_devicetable.h> | ||
| 14 | #include <mach/dma.h> | 13 | #include <mach/dma.h> |
| 15 | 14 | ||
| 16 | struct mcp_ops; | 15 | struct mcp_ops; |
| @@ -27,7 +26,7 @@ struct mcp { | |||
| 27 | dma_device_t dma_telco_rd; | 26 | dma_device_t dma_telco_rd; |
| 28 | dma_device_t dma_telco_wr; | 27 | dma_device_t dma_telco_wr; |
| 29 | struct device attached_device; | 28 | struct device attached_device; |
| 30 | const char *codec; | 29 | int gpio_base; |
| 31 | }; | 30 | }; |
| 32 | 31 | ||
| 33 | struct mcp_ops { | 32 | struct mcp_ops { |
| @@ -45,11 +44,10 @@ void mcp_reg_write(struct mcp *, unsigned int, unsigned int); | |||
| 45 | unsigned int mcp_reg_read(struct mcp *, unsigned int); | 44 | unsigned int mcp_reg_read(struct mcp *, unsigned int); |
| 46 | void mcp_enable(struct mcp *); | 45 | void mcp_enable(struct mcp *); |
| 47 | void mcp_disable(struct mcp *); | 46 | void mcp_disable(struct mcp *); |
| 48 | const struct mcp_device_id *mcp_get_device_id(const struct mcp *mcp); | ||
| 49 | #define mcp_get_sclk_rate(mcp) ((mcp)->sclk_rate) | 47 | #define mcp_get_sclk_rate(mcp) ((mcp)->sclk_rate) |
| 50 | 48 | ||
| 51 | struct mcp *mcp_host_alloc(struct device *, size_t); | 49 | struct mcp *mcp_host_alloc(struct device *, size_t); |
| 52 | int mcp_host_register(struct mcp *, void *); | 50 | int mcp_host_register(struct mcp *); |
| 53 | void mcp_host_unregister(struct mcp *); | 51 | void mcp_host_unregister(struct mcp *); |
| 54 | 52 | ||
| 55 | struct mcp_driver { | 53 | struct mcp_driver { |
| @@ -58,7 +56,6 @@ struct mcp_driver { | |||
| 58 | void (*remove)(struct mcp *); | 56 | void (*remove)(struct mcp *); |
| 59 | int (*suspend)(struct mcp *, pm_message_t); | 57 | int (*suspend)(struct mcp *, pm_message_t); |
| 60 | int (*resume)(struct mcp *); | 58 | int (*resume)(struct mcp *); |
| 61 | const struct mcp_device_id *id_table; | ||
| 62 | }; | 59 | }; |
| 63 | 60 | ||
| 64 | int mcp_driver_register(struct mcp_driver *); | 61 | int mcp_driver_register(struct mcp_driver *); |
| @@ -67,6 +64,9 @@ void mcp_driver_unregister(struct mcp_driver *); | |||
| 67 | #define mcp_get_drvdata(mcp) dev_get_drvdata(&(mcp)->attached_device) | 64 | #define mcp_get_drvdata(mcp) dev_get_drvdata(&(mcp)->attached_device) |
| 68 | #define mcp_set_drvdata(mcp,d) dev_set_drvdata(&(mcp)->attached_device, d) | 65 | #define mcp_set_drvdata(mcp,d) dev_set_drvdata(&(mcp)->attached_device, d) |
| 69 | 66 | ||
| 70 | #define mcp_priv(mcp) ((void *)((mcp)+1)) | 67 | static inline void *mcp_priv(struct mcp *mcp) |
| 68 | { | ||
| 69 | return mcp + 1; | ||
| 70 | } | ||
| 71 | 71 | ||
| 72 | #endif | 72 | #endif |
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h index 2463c2619596..9bc9ac651dad 100644 --- a/include/linux/mfd/twl6040.h +++ b/include/linux/mfd/twl6040.h | |||
| @@ -187,8 +187,10 @@ struct twl6040 { | |||
| 187 | int rev; | 187 | int rev; |
| 188 | u8 vibra_ctrl_cache[2]; | 188 | u8 vibra_ctrl_cache[2]; |
| 189 | 189 | ||
| 190 | /* PLL configuration */ | ||
| 190 | int pll; | 191 | int pll; |
| 191 | unsigned int sysclk; | 192 | unsigned int sysclk; |
| 193 | unsigned int mclk; | ||
| 192 | 194 | ||
| 193 | unsigned int irq; | 195 | unsigned int irq; |
| 194 | unsigned int irq_base; | 196 | unsigned int irq_base; |
diff --git a/include/linux/mfd/ucb1x00.h b/include/linux/mfd/ucb1x00.h index bc19e5fb7ea8..4321f044d1e4 100644 --- a/include/linux/mfd/ucb1x00.h +++ b/include/linux/mfd/ucb1x00.h | |||
| @@ -104,9 +104,6 @@ | |||
| 104 | #define UCB_MODE_DYN_VFLAG_ENA (1 << 12) | 104 | #define UCB_MODE_DYN_VFLAG_ENA (1 << 12) |
| 105 | #define UCB_MODE_AUD_OFF_CAN (1 << 13) | 105 | #define UCB_MODE_AUD_OFF_CAN (1 << 13) |
| 106 | 106 | ||
| 107 | struct ucb1x00_plat_data { | ||
| 108 | int gpio_base; | ||
| 109 | }; | ||
| 110 | 107 | ||
| 111 | struct ucb1x00_irq { | 108 | struct ucb1x00_irq { |
| 112 | void *devid; | 109 | void *devid; |
| @@ -119,7 +116,7 @@ struct ucb1x00 { | |||
| 119 | unsigned int irq; | 116 | unsigned int irq; |
| 120 | struct semaphore adc_sem; | 117 | struct semaphore adc_sem; |
| 121 | spinlock_t io_lock; | 118 | spinlock_t io_lock; |
| 122 | const struct mcp_device_id *id; | 119 | u16 id; |
| 123 | u16 io_dir; | 120 | u16 io_dir; |
| 124 | u16 io_out; | 121 | u16 io_out; |
| 125 | u16 adc_cr; | 122 | u16 adc_cr; |
