From a3398a21435045fb6af1af14cc5638fd0cb52119 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 24 Jul 2020 18:14:32 -0400 Subject: plugins: Fix the builds for targets lacking HAVE_BACKLIGHT Change-Id: Ifdb1501834b7ea63ca6f731bbd6414305d7e0001 --- apps/plugins/lib/helper.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugins/lib/helper.c') 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 @@ #include "plugin.h" #include "helper.h" +#ifdef HAVE_BACKLIGHT /* Force the backlight on */ void backlight_force_on(void) { @@ -51,6 +52,7 @@ void backlight_use_settings(void) backlight_timeout_plugged); #endif /* CONFIG_CHARGING */ } +#endif /* HAVE_BACKLIGHT */ #ifdef HAVE_SW_POWEROFF static bool original_sw_poweroff_state = true; -- cgit v1.2.3