diff options
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 16 |
1 files changed, 2 insertions, 14 deletions
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 | }; |