summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/omap/mcbsp.c4
-rw-r--r--sound/soc/soc-core.c2
-rw-r--r--sound/soc/soc-dapm.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c
index 7a54e3083203..79d4dc785e5c 100644
--- a/sound/soc/omap/mcbsp.c
+++ b/sound/soc/omap/mcbsp.c
@@ -854,7 +854,7 @@ unlock:
854 return size; 854 return size;
855} 855}
856 856
857static DEVICE_ATTR(dma_op_mode, 0644, dma_op_mode_show, dma_op_mode_store); 857static DEVICE_ATTR_RW(dma_op_mode);
858 858
859static const struct attribute *additional_attrs[] = { 859static const struct attribute *additional_attrs[] = {
860 &dev_attr_max_tx_thres.attr, 860 &dev_attr_max_tx_thres.attr,
@@ -923,7 +923,7 @@ out:
923 return size; 923 return size;
924} 924}
925 925
926static DEVICE_ATTR(st_taps, 0644, st_taps_show, st_taps_store); 926static DEVICE_ATTR_RW(st_taps);
927 927
928static const struct attribute *sidetone_attrs[] = { 928static const struct attribute *sidetone_attrs[] = {
929 &dev_attr_st_taps.attr, 929 &dev_attr_st_taps.attr,
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index e91879569a0f..88efc84f3e7b 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -173,7 +173,7 @@ static ssize_t codec_reg_show(struct device *dev,
173 return soc_codec_reg_show(rtd->codec, buf, PAGE_SIZE, 0); 173 return soc_codec_reg_show(rtd->codec, buf, PAGE_SIZE, 0);
174} 174}
175 175
176static DEVICE_ATTR(codec_reg, 0444, codec_reg_show, NULL); 176static DEVICE_ATTR_RO(codec_reg);
177 177
178static ssize_t pmdown_time_show(struct device *dev, 178static ssize_t pmdown_time_show(struct device *dev,
179 struct device_attribute *attr, char *buf) 179 struct device_attribute *attr, char *buf)
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index a10b21cfc31e..d1977ced895f 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -2364,7 +2364,7 @@ static ssize_t dapm_widget_show(struct device *dev,
2364 return count; 2364 return count;
2365} 2365}
2366 2366
2367static DEVICE_ATTR(dapm_widget, 0444, dapm_widget_show, NULL); 2367static DEVICE_ATTR_RO(dapm_widget);
2368 2368
2369struct attribute *soc_dapm_dev_attrs[] = { 2369struct attribute *soc_dapm_dev_attrs[] = {
2370 &dev_attr_dapm_widget.attr, 2370 &dev_attr_dapm_widget.attr,