diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-28 13:29:06 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-28 15:05:46 +0100 |
commit | ea0ed157863b7b650e3eff485a49cbc0925f5265 (patch) | |
tree | 53c9144fbe0a8701e3137fabc0c05a0b8e514a51 /include/pwm.h | |
parent | 37acfdf97d1ebddb431e2ed9a9aa4482ac1a474a (diff) | |
download | barebox-ea0ed157863b7b650e3eff485a49cbc0925f5265.tar.gz barebox-ea0ed157863b7b650e3eff485a49cbc0925f5265.tar.xz |
PWM: Implement devicetree support
This implements of_pwm_request() for PWM client drivers.
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 5ca9fa056b..59d86d497d 100644 --- a/include/pwm.h +++ b/include/pwm.h @@ -9,6 +9,8 @@ struct device_d; */ struct pwm_device *pwm_request(const char *pwmname); +struct pwm_device *of_pwm_request(struct device_node *np, const char *con_id); + /* * pwm_free - free a PWM device */ |