]> 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)
commit7031ef3c55561e8cda63cc85086b2d8080e841a2
treea9c7f9874bb482de030ddf2daf830eb72f445fed
parent6cb5870637f265e18c3d34202ab3f586228993cf
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