]> git.karo-electronics.de Git - linux-beck.git/commitdiff
OMAPDSS: rename display-sysfs 'name' entry
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 24 Sep 2013 14:00:14 +0000 (17:00 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 30 Dec 2013 14:14:15 +0000 (16:14 +0200)
omapdss in compat mode creates some sysfs files into the device's sysfs
directory, including a 'name' file. This works fine for
platform_devices, but breaks with i2c or spi devices, as those already
have a 'name' file.

Fix this by renaming the omapdss's 'name' file to 'display_name'.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/display-sysfs.c

index 21d7f77df702f7782521d318a4bf2646c70130f3..f7b5f956104163a942e0a4d88b1f9f42505bd778 100644 (file)
@@ -277,7 +277,7 @@ static ssize_t display_wss_store(struct device *dev,
        return size;
 }
 
-static DEVICE_ATTR(name, S_IRUGO, display_name_show, NULL);
+static DEVICE_ATTR(display_name, S_IRUGO, display_name_show, NULL);
 static DEVICE_ATTR(enabled, S_IRUGO|S_IWUSR,
                display_enabled_show, display_enabled_store);
 static DEVICE_ATTR(tear_elim, S_IRUGO|S_IWUSR,
@@ -292,7 +292,7 @@ static DEVICE_ATTR(wss, S_IRUGO|S_IWUSR,
                display_wss_show, display_wss_store);
 
 static const struct attribute *display_sysfs_attrs[] = {
-       &dev_attr_name.attr,
+       &dev_attr_display_name.attr,
        &dev_attr_enabled.attr,
        &dev_attr_tear_elim.attr,
        &dev_attr_timings.attr,