radeon: expose backlight class device for legacy LVDS encoder
Allows e.g. power management daemons to control the backlight level. Inspired by the corresponding code in radeonfb. [mjg@redhat.com: updated to add backlight type and make the connector the parent device] Signed-off-by:Michel Dänzer <michel@daenzer.net> Signed-off-by:
Matthew Garrett <mjg@redhat.com> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: David Airlie <airlied@linux.ie> Acked-by:
Alex Deucher <alexdeucher@gmail.com> Cc: Ben Skeggs <bskeggs@redhat.com> Cc: Zhang Rui <rui.zhang@intel.com> Cc: Len Brown <lenb@kernel.org> Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Tested-by:
Sedat Dilek <sedat.dilek@googlemail.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/gpu/drm/radeon/Kconfig 1 addition, 0 deletionsdrivers/gpu/drm/radeon/Kconfig
- drivers/gpu/drm/radeon/radeon_connectors.c 15 additions, 0 deletionsdrivers/gpu/drm/radeon/radeon_connectors.c
- drivers/gpu/drm/radeon/radeon_legacy_encoders.c 251 additions, 6 deletionsdrivers/gpu/drm/radeon/radeon_legacy_encoders.c
- drivers/gpu/drm/radeon/radeon_mode.h 6 additions, 0 deletionsdrivers/gpu/drm/radeon/radeon_mode.h
Loading
Please register or sign in to comment