pwm: qpnp-pwm: add api for synchronous enable of pwms
Change-Id: I29d8a2a3dc7adff734bdbbd0e9969323b86e461f
This commit is contained in:
parent
5d242f188c
commit
8fdbf3e1bf
1 changed files with 10 additions and 0 deletions
|
@ -155,6 +155,11 @@ int pwm_lut_config(struct pwm_device *pwm, int period_us,
|
|||
int pwm_config_us(struct pwm_device *pwm,
|
||||
int duty_us, int period_us);
|
||||
|
||||
/*
|
||||
* synchronized enable of multiple pwm instances
|
||||
*/
|
||||
int pwm_enable_synchronized(struct pwm_device **pwms, size_t num);
|
||||
|
||||
#else
|
||||
static inline int pwm_config_period(struct pwm_device *pwm,
|
||||
struct pwm_period_config *pwm_p)
|
||||
|
@ -183,6 +188,11 @@ static inline int pwm_config_us(struct pwm_device *pwm,
|
|||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int pwm_enable_synchronized(struct pwm_device **pwms, size_t num)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue