diff options
| author | Noralf Trønnes <noralf@tronnes.org> | 2017-02-23 08:29:57 -0500 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2017-02-23 21:09:00 -0500 |
| commit | 7fef80a4b9c8ed5a48d44ea4a74b68afe13d73ae (patch) | |
| tree | 468b515052c51159cd4fde248ba2f37ece7cf69f /include/drm/tinydrm | |
| parent | ce8c0137001e3ac237830a6059addaee3b5e0e26 (diff) | |
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>
Diffstat (limited to 'include/drm/tinydrm')
| -rw-r--r-- | include/drm/tinydrm/tinydrm-helpers.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/drm/tinydrm/tinydrm-helpers.h b/include/drm/tinydrm/tinydrm-helpers.h index 78175fe6ab22..9b9b6cfe3ba5 100644 --- a/include/drm/tinydrm/tinydrm-helpers.h +++ b/include/drm/tinydrm/tinydrm-helpers.h | |||
| @@ -44,28 +44,9 @@ void tinydrm_xrgb8888_to_rgb565(u16 *dst, void *vaddr, | |||
| 44 | struct drm_framebuffer *fb, | 44 | struct drm_framebuffer *fb, |
| 45 | struct drm_clip_rect *clip, bool swap); | 45 | struct drm_clip_rect *clip, bool swap); |
| 46 | 46 | ||
| 47 | #ifdef CONFIG_BACKLIGHT_CLASS_DEVICE | ||
| 48 | struct backlight_device *tinydrm_of_find_backlight(struct device *dev); | 47 | struct backlight_device *tinydrm_of_find_backlight(struct device *dev); |
| 49 | int tinydrm_enable_backlight(struct backlight_device *backlight); | 48 | int tinydrm_enable_backlight(struct backlight_device *backlight); |
| 50 | int tinydrm_disable_backlight(struct backlight_device *backlight); | 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 | size_t tinydrm_spi_max_transfer_size(struct spi_device *spi, size_t max_len); | 51 | size_t tinydrm_spi_max_transfer_size(struct spi_device *spi, size_t max_len); |
| 71 | bool tinydrm_spi_bpw_supported(struct spi_device *spi, u8 bpw); | 52 | bool tinydrm_spi_bpw_supported(struct spi_device *spi, u8 bpw); |
