diff options
Diffstat (limited to 'common/pwm_kblight.c')
-rw-r--r-- | common/pwm_kblight.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/pwm_kblight.c b/common/pwm_kblight.c index bd7e07644d..5748bef700 100644 --- a/common/pwm_kblight.c +++ b/common/pwm_kblight.c @@ -19,6 +19,11 @@ static int kblight_pwm_set(int percent) return EC_SUCCESS; } +static int kblight_pwm_get(void) +{ + return pwm_get_duty(kblight_pwm_ch); +} + static int kblight_pwm_init(void) { /* dnojiri: Why do we need save/restore setting over sysjump? */ @@ -41,6 +46,7 @@ static int kblight_pwm_get_enabled(void) const struct kblight_drv kblight_pwm = { .init = kblight_pwm_init, .set = kblight_pwm_set, + .get = kblight_pwm_get, .enable = kblight_pwm_enable, .get_enabled = kblight_pwm_get_enabled, }; |