Message ID | 1459368249-13241-21-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 c2b1569..9a83840 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -894,6 +894,11 @@ static void pwm_dbg_show(struct pwm_chip *chip, struct seq_file *s) if (pstate.enabled) seq_puts(s, " enabled"); + seq_printf(s, " period:%uns", pstate.period); + seq_printf(s, " duty:%uns", pstate.duty_cycle); + seq_printf(s, " polarity:%s", + pstate.polarity ? "inverse" : "normal"); + seq_puts(s, "\n"); } }