Message ID | 1460661464-11216-25-git-send-email-boris.brezillon@free-electrons.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index aefffcf..9f4e97e 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -959,6 +959,11 @@ static void pwm_dbg_show(struct pwm_chip *chip, struct seq_file *s) if (state.enabled) seq_puts(s, " enabled"); + seq_printf(s, " period:%uns", state.period); + seq_printf(s, " duty:%uns", state.duty_cycle); + seq_printf(s, " polarity:%s", + state.polarity ? "inverse" : "normal"); + seq_puts(s, "\n"); } }