drm/i915: hide unused intel_panel_set_backlight function
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Nov 2017 15:10:28 +0000 (16:10 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 27 Nov 2017 16:27:15 +0000 (17:27 +0100)
commitfd94d53e55bd487368dfee9f1af24da78b2bb582
treefe762bad92b89c75945ae6a6d8eefef074be37f6
parent2de2d0b063b08becb2c67a2c338c44e37bdcffee
drm/i915: hide unused intel_panel_set_backlight function

Building i915 without backlight support results in a harmless warning
for intel_panel_set_backlight:

drivers/gpu/drm/i915/intel_panel.c:653:13: error: 'intel_panel_set_backlight' defined but not used [-Werror=unused-function]

This moves it into the CONFIG_BACKLIGHT_CLASS_DEVICE section that
its caller is in.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171127151239.1813673-2-arnd@arndb.de
drivers/gpu/drm/i915/intel_panel.c