diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 18:14:32 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 18:17:19 -0400 |
commit | a3398a21435045fb6af1af14cc5638fd0cb52119 (patch) | |
tree | 701d1f73cc89742ea4ae21d11a60f2f029284099 /apps/plugins/lib | |
parent | 5dbb7576700fad81d6ab722b96620fdbbf462be4 (diff) | |
download | rockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.tar.gz rockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.zip |
plugins: Fix the builds for targets lacking HAVE_BACKLIGHT
Change-Id: Ifdb1501834b7ea63ca6f731bbd6414305d7e0001
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r-- | apps/plugins/lib/helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lib/helper.c b/apps/plugins/lib/helper.c index 6eb3498791..f36c01b23e 100644 --- a/apps/plugins/lib/helper.c +++ b/apps/plugins/lib/helper.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "plugin.h" | 22 | #include "plugin.h" |
23 | #include "helper.h" | 23 | #include "helper.h" |
24 | 24 | ||
25 | #ifdef HAVE_BACKLIGHT | ||
25 | /* Force the backlight on */ | 26 | /* Force the backlight on */ |
26 | void backlight_force_on(void) | 27 | void backlight_force_on(void) |
27 | { | 28 | { |
@@ -51,6 +52,7 @@ void backlight_use_settings(void) | |||
51 | backlight_timeout_plugged); | 52 | backlight_timeout_plugged); |
52 | #endif /* CONFIG_CHARGING */ | 53 | #endif /* CONFIG_CHARGING */ |
53 | } | 54 | } |
55 | #endif /* HAVE_BACKLIGHT */ | ||
54 | 56 | ||
55 | #ifdef HAVE_SW_POWEROFF | 57 | #ifdef HAVE_SW_POWEROFF |
56 | static bool original_sw_poweroff_state = true; | 58 | static bool original_sw_poweroff_state = true; |