]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix intel_backlight_device_register declaration
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Nov 2017 15:10:27 +0000 (16:10 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 27 Nov 2017 16:27:08 +0000 (17:27 +0100)
commitbe522bbce1e5270b462f788f6d12d2e02db53afd
treeafde0cc3ff115d5ec5ce65aaf5c293aef19bffba
parentbb96b7a93e6dec025908bc7d9c4b13128234568f
drm/i915: fix intel_backlight_device_register declaration

The alternative intel_backlight_device_register() definition apparently
never got used, but I have now run into a case of i915 being compiled
without CONFIG_BACKLIGHT_CLASS_DEVICE, resulting in a number of
identical warnings:

drivers/gpu/drm/i915/intel_drv.h:1739:12: error: 'intel_backlight_device_register' defined but not used [-Werror=unused-function]

This marks the function as 'inline', which was surely the original
intention here.

Fixes: f611a14380c7 ("drm/i915: Move backlight registration to connector registration")
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-1-arnd@arndb.de
drivers/gpu/drm/i915/intel_drv.h