diff options
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/fsl/imx-audmux.c | 8 | ||||
-rw-r--r-- | sound/soc/fsl/mpc8610_hpcd.c | 8 | ||||
-rw-r--r-- | sound/soc/fsl/p1022_ds.c | 10 | ||||
-rw-r--r-- | sound/soc/soc-core.c | 8 | ||||
-rw-r--r-- | sound/soc/soc-dapm.c | 16 |
5 files changed, 13 insertions, 37 deletions
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index 601df809a26a..1765a197acb0 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c | |||
@@ -40,12 +40,6 @@ static void __iomem *audmux_base; | |||
40 | #ifdef CONFIG_DEBUG_FS | 40 | #ifdef CONFIG_DEBUG_FS |
41 | static struct dentry *audmux_debugfs_root; | 41 | static struct dentry *audmux_debugfs_root; |
42 | 42 | ||
43 | static int audmux_open_file(struct inode *inode, struct file *file) | ||
44 | { | ||
45 | file->private_data = inode->i_private; | ||
46 | return 0; | ||
47 | } | ||
48 | |||
49 | /* There is an annoying discontinuity in the SSI numbering with regard | 43 | /* There is an annoying discontinuity in the SSI numbering with regard |
50 | * to the Linux number of the devices */ | 44 | * to the Linux number of the devices */ |
51 | static const char *audmux_port_string(int port) | 45 | static const char *audmux_port_string(int port) |
@@ -142,7 +136,7 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf, | |||
142 | } | 136 | } |
143 | 137 | ||
144 | static const struct file_operations audmux_debugfs_fops = { | 138 | static const struct file_operations audmux_debugfs_fops = { |
145 | .open = audmux_open_file, | 139 | .open = simple_open, |
146 | .read = audmux_read_file, | 140 | .read = audmux_read_file, |
147 | .llseek = default_llseek, | 141 | .llseek = default_llseek, |
148 | }; | 142 | }; |
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c index 8fdc430a4f68..60bcba1bc30e 100644 --- a/sound/soc/fsl/mpc8610_hpcd.c +++ b/sound/soc/fsl/mpc8610_hpcd.c | |||
@@ -55,9 +55,9 @@ static int mpc8610_hpcd_machine_probe(struct snd_soc_card *card) | |||
55 | { | 55 | { |
56 | struct mpc8610_hpcd_data *machine_data = | 56 | struct mpc8610_hpcd_data *machine_data = |
57 | container_of(card, struct mpc8610_hpcd_data, card); | 57 | container_of(card, struct mpc8610_hpcd_data, card); |
58 | struct ccsr_guts_86xx __iomem *guts; | 58 | struct ccsr_guts __iomem *guts; |
59 | 59 | ||
60 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_86xx)); | 60 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
61 | if (!guts) { | 61 | if (!guts) { |
62 | dev_err(card->dev, "could not map global utilities\n"); | 62 | dev_err(card->dev, "could not map global utilities\n"); |
63 | return -ENOMEM; | 63 | return -ENOMEM; |
@@ -139,9 +139,9 @@ static int mpc8610_hpcd_machine_remove(struct snd_soc_card *card) | |||
139 | { | 139 | { |
140 | struct mpc8610_hpcd_data *machine_data = | 140 | struct mpc8610_hpcd_data *machine_data = |
141 | container_of(card, struct mpc8610_hpcd_data, card); | 141 | container_of(card, struct mpc8610_hpcd_data, card); |
142 | struct ccsr_guts_86xx __iomem *guts; | 142 | struct ccsr_guts __iomem *guts; |
143 | 143 | ||
144 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_86xx)); | 144 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
145 | if (!guts) { | 145 | if (!guts) { |
146 | dev_err(card->dev, "could not map global utilities\n"); | 146 | dev_err(card->dev, "could not map global utilities\n"); |
147 | return -ENOMEM; | 147 | return -ENOMEM; |
diff --git a/sound/soc/fsl/p1022_ds.c b/sound/soc/fsl/p1022_ds.c index 202298556ba7..50adf4032bcc 100644 --- a/sound/soc/fsl/p1022_ds.c +++ b/sound/soc/fsl/p1022_ds.c | |||
@@ -46,7 +46,7 @@ | |||
46 | * ch: The channel on the DMA controller (0, 1, 2, or 3) | 46 | * ch: The channel on the DMA controller (0, 1, 2, or 3) |
47 | * device: The device to set as the target (CCSR_GUTS_DMUXCR_xxx) | 47 | * device: The device to set as the target (CCSR_GUTS_DMUXCR_xxx) |
48 | */ | 48 | */ |
49 | static inline void guts_set_dmuxcr(struct ccsr_guts_85xx __iomem *guts, | 49 | static inline void guts_set_dmuxcr(struct ccsr_guts __iomem *guts, |
50 | unsigned int co, unsigned int ch, unsigned int device) | 50 | unsigned int co, unsigned int ch, unsigned int device) |
51 | { | 51 | { |
52 | unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch)); | 52 | unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch)); |
@@ -87,9 +87,9 @@ static int p1022_ds_machine_probe(struct snd_soc_card *card) | |||
87 | { | 87 | { |
88 | struct machine_data *mdata = | 88 | struct machine_data *mdata = |
89 | container_of(card, struct machine_data, card); | 89 | container_of(card, struct machine_data, card); |
90 | struct ccsr_guts_85xx __iomem *guts; | 90 | struct ccsr_guts __iomem *guts; |
91 | 91 | ||
92 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_85xx)); | 92 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
93 | if (!guts) { | 93 | if (!guts) { |
94 | dev_err(card->dev, "could not map global utilities\n"); | 94 | dev_err(card->dev, "could not map global utilities\n"); |
95 | return -ENOMEM; | 95 | return -ENOMEM; |
@@ -161,9 +161,9 @@ static int p1022_ds_machine_remove(struct snd_soc_card *card) | |||
161 | { | 161 | { |
162 | struct machine_data *mdata = | 162 | struct machine_data *mdata = |
163 | container_of(card, struct machine_data, card); | 163 | container_of(card, struct machine_data, card); |
164 | struct ccsr_guts_85xx __iomem *guts; | 164 | struct ccsr_guts __iomem *guts; |
165 | 165 | ||
166 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_85xx)); | 166 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
167 | if (!guts) { | 167 | if (!guts) { |
168 | dev_err(card->dev, "could not map global utilities\n"); | 168 | dev_err(card->dev, "could not map global utilities\n"); |
169 | return -ENOMEM; | 169 | return -ENOMEM; |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index a6922bc96184..8a17048dba42 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -200,12 +200,6 @@ static ssize_t pmdown_time_set(struct device *dev, | |||
200 | static DEVICE_ATTR(pmdown_time, 0644, pmdown_time_show, pmdown_time_set); | 200 | static DEVICE_ATTR(pmdown_time, 0644, pmdown_time_show, pmdown_time_set); |
201 | 201 | ||
202 | #ifdef CONFIG_DEBUG_FS | 202 | #ifdef CONFIG_DEBUG_FS |
203 | static int codec_reg_open_file(struct inode *inode, struct file *file) | ||
204 | { | ||
205 | file->private_data = inode->i_private; | ||
206 | return 0; | ||
207 | } | ||
208 | |||
209 | static ssize_t codec_reg_read_file(struct file *file, char __user *user_buf, | 203 | static ssize_t codec_reg_read_file(struct file *file, char __user *user_buf, |
210 | size_t count, loff_t *ppos) | 204 | size_t count, loff_t *ppos) |
211 | { | 205 | { |
@@ -263,7 +257,7 @@ static ssize_t codec_reg_write_file(struct file *file, | |||
263 | } | 257 | } |
264 | 258 | ||
265 | static const struct file_operations codec_reg_fops = { | 259 | static const struct file_operations codec_reg_fops = { |
266 | .open = codec_reg_open_file, | 260 | .open = simple_open, |
267 | .read = codec_reg_read_file, | 261 | .read = codec_reg_read_file, |
268 | .write = codec_reg_write_file, | 262 | .write = codec_reg_write_file, |
269 | .llseek = default_llseek, | 263 | .llseek = default_llseek, |
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 69e9452386e6..589e16b9a483 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -1538,12 +1538,6 @@ static int dapm_power_widgets(struct snd_soc_dapm_context *dapm, int event) | |||
1538 | } | 1538 | } |
1539 | 1539 | ||
1540 | #ifdef CONFIG_DEBUG_FS | 1540 | #ifdef CONFIG_DEBUG_FS |
1541 | static int dapm_widget_power_open_file(struct inode *inode, struct file *file) | ||
1542 | { | ||
1543 | file->private_data = inode->i_private; | ||
1544 | return 0; | ||
1545 | } | ||
1546 | |||
1547 | static ssize_t dapm_widget_power_read_file(struct file *file, | 1541 | static ssize_t dapm_widget_power_read_file(struct file *file, |
1548 | char __user *user_buf, | 1542 | char __user *user_buf, |
1549 | size_t count, loff_t *ppos) | 1543 | size_t count, loff_t *ppos) |
@@ -1607,17 +1601,11 @@ static ssize_t dapm_widget_power_read_file(struct file *file, | |||
1607 | } | 1601 | } |
1608 | 1602 | ||
1609 | static const struct file_operations dapm_widget_power_fops = { | 1603 | static const struct file_operations dapm_widget_power_fops = { |
1610 | .open = dapm_widget_power_open_file, | 1604 | .open = simple_open, |
1611 | .read = dapm_widget_power_read_file, | 1605 | .read = dapm_widget_power_read_file, |
1612 | .llseek = default_llseek, | 1606 | .llseek = default_llseek, |
1613 | }; | 1607 | }; |
1614 | 1608 | ||
1615 | static int dapm_bias_open_file(struct inode *inode, struct file *file) | ||
1616 | { | ||
1617 | file->private_data = inode->i_private; | ||
1618 | return 0; | ||
1619 | } | ||
1620 | |||
1621 | static ssize_t dapm_bias_read_file(struct file *file, char __user *user_buf, | 1609 | static ssize_t dapm_bias_read_file(struct file *file, char __user *user_buf, |
1622 | size_t count, loff_t *ppos) | 1610 | size_t count, loff_t *ppos) |
1623 | { | 1611 | { |
@@ -1648,7 +1636,7 @@ static ssize_t dapm_bias_read_file(struct file *file, char __user *user_buf, | |||
1648 | } | 1636 | } |
1649 | 1637 | ||
1650 | static const struct file_operations dapm_bias_fops = { | 1638 | static const struct file_operations dapm_bias_fops = { |
1651 | .open = dapm_bias_open_file, | 1639 | .open = simple_open, |
1652 | .read = dapm_bias_read_file, | 1640 | .read = dapm_bias_read_file, |
1653 | .llseek = default_llseek, | 1641 | .llseek = default_llseek, |
1654 | }; | 1642 | }; |