diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-24 10:00:14 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-12-30 09:14:15 -0500 |
commit | 303e4697e762dc92a40405f4e4b8aac02cd0d70b (patch) | |
tree | 3b44dbbc9cb018010894cbf4eda20ca837e8d431 /drivers/video | |
parent | 29fceeebb6ad55dd0e27f6f7b8f10aa039315cde (diff) |
OMAPDSS: rename display-sysfs 'name' entry
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/dss/display-sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/display-sysfs.c b/drivers/video/omap2/dss/display-sysfs.c index 21d7f77df702..f7b5f9561041 100644 --- a/drivers/video/omap2/dss/display-sysfs.c +++ b/drivers/video/omap2/dss/display-sysfs.c | |||
@@ -277,7 +277,7 @@ static ssize_t display_wss_store(struct device *dev, | |||
277 | return size; | 277 | return size; |
278 | } | 278 | } |
279 | 279 | ||
280 | static DEVICE_ATTR(name, S_IRUGO, display_name_show, NULL); | 280 | static DEVICE_ATTR(display_name, S_IRUGO, display_name_show, NULL); |
281 | static DEVICE_ATTR(enabled, S_IRUGO|S_IWUSR, | 281 | static DEVICE_ATTR(enabled, S_IRUGO|S_IWUSR, |
282 | display_enabled_show, display_enabled_store); | 282 | display_enabled_show, display_enabled_store); |
283 | static DEVICE_ATTR(tear_elim, S_IRUGO|S_IWUSR, | 283 | static DEVICE_ATTR(tear_elim, S_IRUGO|S_IWUSR, |
@@ -292,7 +292,7 @@ static DEVICE_ATTR(wss, S_IRUGO|S_IWUSR, | |||
292 | display_wss_show, display_wss_store); | 292 | display_wss_show, display_wss_store); |
293 | 293 | ||
294 | static const struct attribute *display_sysfs_attrs[] = { | 294 | static const struct attribute *display_sysfs_attrs[] = { |
295 | &dev_attr_name.attr, | 295 | &dev_attr_display_name.attr, |
296 | &dev_attr_enabled.attr, | 296 | &dev_attr_enabled.attr, |
297 | &dev_attr_tear_elim.attr, | 297 | &dev_attr_tear_elim.attr, |
298 | &dev_attr_timings.attr, | 298 | &dev_attr_timings.attr, |