diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
commit | 97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d (patch) | |
tree | b032a1397fd33240d8fdc7d6e17059723d0ffe55 /apps/plugins/starfield.c | |
parent | 3745c813f924b12232c4f37610aecd23fe5654b8 (diff) | |
download | rockbox-97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d.tar.gz rockbox-97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d.zip |
plugins HAVE_BACKLIGHT helper remove ifdefs in favor of dummy functions
lessen the ifdef hell
Change-Id: I52f830284e4599f3fc3a75c27dda27058b8de1a3
Diffstat (limited to 'apps/plugins/starfield.c')
-rw-r--r-- | apps/plugins/starfield.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c index 7fc400d0ee..39ed8a8171 100644 --- a/apps/plugins/starfield.c +++ b/apps/plugins/starfield.c | |||
@@ -324,14 +324,14 @@ enum plugin_status plugin_start(const void* parameter) | |||
324 | int ret; | 324 | int ret; |
325 | 325 | ||
326 | (void)parameter; | 326 | (void)parameter; |
327 | #ifdef HAVE_BACKLIGHT | 327 | |
328 | /* Turn off backlight timeout */ | 328 | /* Turn off backlight timeout */ |
329 | backlight_ignore_timeout(); | 329 | backlight_ignore_timeout(); |
330 | #endif | 330 | |
331 | ret = plugin_main(); | 331 | ret = plugin_main(); |
332 | #ifdef HAVE_BACKLIGHT | 332 | |
333 | /* Turn on backlight timeout (revert to settings) */ | 333 | /* Turn on backlight timeout (revert to settings) */ |
334 | backlight_use_settings(); | 334 | backlight_use_settings(); |
335 | #endif | 335 | |
336 | return ret; | 336 | return ret; |
337 | } | 337 | } |