mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
A driver is supposed to know what type an LED is, unknown doesn't help anyone here. So replace this with a private #define and abort when a driver doesn't set the type. This also adds a requirement that any driver initializing a LED must have the read_led() function, otherwise we can't fill it in correctly. And bump the enum up by one, the first valid value should start at 1 (or some other non-boolean value). Related #365 Fixes #364 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
9.7 KiB
9.7 KiB