]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: fix regression with display sysfs files
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 25 Feb 2015 08:23:58 +0000 (10:23 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Feb 2015 08:23:15 +0000 (10:23 +0200)
commitbbf474a91e102baa7e4b88e4a43b7439967cca8c
treea9c7f9874bb482de030ddf2daf830eb72f445fed
parentb683a41040ae72cfbf7fe48faf1990ce9c938f68
OMAPDSS: fix regression with display sysfs files

omapdss's sysfs directories for displays used to have 'name' file,
giving the name for the display. This file was later renamed to
'display_name' to avoid conflicts with i2c sysfs 'name' file. Looks like
at least xserver-xorg-video-omap3 requires the 'name' file to be
present.

To fix the regression, this patch creates new kobjects for each display,
allowing us to create sysfs directories for the displays. This way we
have the whole directory for omapdss, and there will be no sysfs file
clashes with the underlying display device's sysfs files.

We can thus add the 'name' sysfs file back.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Tested-by: NeilBrown <neilb@suse.de>
drivers/video/fbdev/omap2/dss/display-sysfs.c
include/video/omapdss.h