summaryrefslogtreecommitdiff
path: root/chip/npcx/pwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/npcx/pwm.c')
-rw-r--r--chip/npcx/pwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/npcx/pwm.c b/chip/npcx/pwm.c
index 541c29de99..b2016906b3 100644
--- a/chip/npcx/pwm.c
+++ b/chip/npcx/pwm.c
@@ -127,7 +127,7 @@ int pwm_get_enabled(enum pwm_channel ch)
*/
void pwm_set_duty(enum pwm_channel ch, int percent)
{
- /* Convert 16 bit duty to percent on [0, 100] */
+ /* Convert percent on [0, 100] to 16 bit duty */
pwm_set_raw_duty(ch, (percent * EC_PWM_MAX_DUTY) / 100);
}