diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-02-21 12:51:42 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-02-21 12:59:44 -0800 |
commit | 12b12e53346a6c80e33e1f88beb620b01efac2d9 (patch) | |
tree | 7c0f7ae780a57e83d0c057cd82df49ebb1a14025 /include/pwm.h | |
parent | 63c9ebaac95d0d95cae132533ca30708ea87a0f7 (diff) | |
download | chrome-ec-12b12e53346a6c80e33e1f88beb620b01efac2d9.tar.gz |
Add EC host commands for keyboard backlight
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:8128
TEST='ectool setkblight X && ectool getkblight' for X=1, 20, 99, 100, 0
Change-Id: I540fd2d05f4caa110cd1dc45e9b5184fc8777a06
Diffstat (limited to 'include/pwm.h')
-rw-r--r-- | include/pwm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/pwm.h b/include/pwm.h index 50534f2434..ff76c89744 100644 --- a/include/pwm.h +++ b/include/pwm.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -19,6 +19,9 @@ int pwm_get_fan_rpm(void); /* Sets the target fan RPM. Pass -1 to set fan to maximum. */ int pwm_set_fan_target_rpm(int rpm); +/* Gets the keyboard backlight percentage (0=off, 100=max). */ +int pwm_get_keyboard_backlight(void); + /* Sets the keyboard backlight percentage (0=off, 100=max). */ int pwm_set_keyboard_backlight(int percent); |