leds: trigger: use inline functions instead of macros