Merge tag 'asoc-v4.16-5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[muen/linux.git] / sound / soc / soc-dapm.c
index ee6d9d9a3c5eb9260dfcdf4f94de3f587c409751..92894d9cac19d54d835b6611c013b0ea527403a8 100644 (file)
@@ -2364,7 +2364,7 @@ static ssize_t dapm_widget_show(struct device *dev,
        return count;
 }
 
-static DEVICE_ATTR(dapm_widget, 0444, dapm_widget_show, NULL);
+static DEVICE_ATTR_RO(dapm_widget);
 
 struct attribute *soc_dapm_dev_attrs[] = {
        &dev_attr_dapm_widget.attr,