1
0
Fork 0
forked from len0rd/rockbox

Require HAVE_LCD_SLEEP when HAVE_LCD_SLEEP_SETTING is defined

Change-Id: I5429c538b8c46ab857100f3a290c4241c8991038
This commit is contained in:
Vencislav Atanasov 2025-07-23 20:46:41 +02:00
parent e181ebfb2d
commit a901b530e0

View file

@ -1453,4 +1453,9 @@ Lyre prototype 1 */
other than audio support */ other than audio support */
#define AUDIOHW_SETTING(name, us, nd, st, minv, maxv, defv, expr...) #define AUDIOHW_SETTING(name, us, nd, st, minv, maxv, defv, expr...)
/* Trying to enable the setting without the underlying functions doesn't work */
#if defined(HAVE_LCD_SLEEP_SETTING) && !defined(HAVE_LCD_SLEEP)
#error "HAVE_LCD_SLEEP_SETTING requires HAVE_LCD_SLEEP"
#endif
#endif /* __CONFIG_H__ */ #endif /* __CONFIG_H__ */