Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/tinydrm: helpers: Properly fix backlight dependency

BACKLIGHT_CLASS_DEVICE was selected in the last version of the
tinydrm patchset to fix the backlight dependency, but the
ifdef CONFIG_BACKLIGHT_CLASS_DEVICE was forgotten. Fix that.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Noralf Trønnes and committed by
Dave Airlie
7fef80a4 ce8c0137

-19
-19
include/drm/tinydrm/tinydrm-helpers.h
··· 44 44 struct drm_framebuffer *fb, 45 45 struct drm_clip_rect *clip, bool swap); 46 46 47 - #ifdef CONFIG_BACKLIGHT_CLASS_DEVICE 48 47 struct backlight_device *tinydrm_of_find_backlight(struct device *dev); 49 48 int tinydrm_enable_backlight(struct backlight_device *backlight); 50 49 int tinydrm_disable_backlight(struct backlight_device *backlight); 51 - #else 52 - static inline struct backlight_device * 53 - tinydrm_of_find_backlight(struct device *dev) 54 - { 55 - return NULL; 56 - } 57 - 58 - static inline int tinydrm_enable_backlight(struct backlight_device *backlight) 59 - { 60 - return 0; 61 - } 62 - 63 - static inline int 64 - tinydrm_disable_backlight(struct backlight_device *backlight) 65 - { 66 - return 0; 67 - } 68 - #endif 69 50 70 51 size_t tinydrm_spi_max_transfer_size(struct spi_device *spi, size_t max_len); 71 52 bool tinydrm_spi_bpw_supported(struct spi_device *spi, u8 bpw);