diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-12 11:48:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-12 12:00:41 +0200 |
commit | 605621a3c85387e7bd896ce3fa7b2c974a0a8601 (patch) | |
tree | c8a6ca90380facc35aec1d4f0aa341ba008b2d5a /include/pwm.h | |
parent | cd616c464228f54f4b5371dd6308a35ef0249cfd (diff) | |
download | barebox-605621a3c85387e7bd896ce3fa7b2c974a0a8601.tar.gz barebox-605621a3c85387e7bd896ce3fa7b2c974a0a8601.tar.xz |
PWM: Allow multiple PWMs per device node
Matching a device node is enough since a device node may have
multiple PWMs. Check for a id aswell.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/pwm.h')
-rw-r--r-- | include/pwm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pwm.h b/include/pwm.h index 59d86d497d..911c760839 100644 --- a/include/pwm.h +++ b/include/pwm.h @@ -57,12 +57,14 @@ struct pwm_ops { /** * struct pwm_chip - abstract a PWM + * @id: The id of this pwm * @devname: unique identifier for this pwm * @ops: The callbacks for this PWM * @duty_ns: The duty cycle of the PWM, in nano-seconds * @period_ns: The period of the PWM, in nano-seconds */ struct pwm_chip { + int id; const char *devname; struct pwm_ops *ops; int duty_ns; |