Re: [PATCH] pwm: Fill pwm->args before calling pwm_request_from_chip()

2016-05-17 Thread Boris Brezillon
On Tue, 17 May 2016 13:04:38 +0200 Thierry Reding wrote: > On Tue, May 17, 2016 at 12:35:33PM +0200, Boris Brezillon wrote: > [...] > > diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c > > index 427142d..3d2eeaa 100644 > > --- a/drivers/pwm/core.c > > +++ b/drivers/pwm/core.c > > @@ -143,10 +

Re: [PATCH] pwm: Fill pwm->args before calling pwm_request_from_chip()

2016-05-17 Thread Thierry Reding
On Tue, May 17, 2016 at 12:35:33PM +0200, Boris Brezillon wrote: [...] > diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c > index 427142d..3d2eeaa 100644 > --- a/drivers/pwm/core.c > +++ b/drivers/pwm/core.c > @@ -143,10 +143,6 @@ of_pwm_xlate_with_flags(struct pwm_chip *pc, const > struct of_

[PATCH] pwm: Fill pwm->args before calling pwm_request_from_chip()

2016-05-17 Thread Boris Brezillon
Commit e39c0df1be5a ("pwm: Introduce the pwm_args concept"), moved the period and polarity initialization steps into pwm_request_device() (called by pwm_request_from_chip()) based on the pwm->args information. Make sure we fill pwm->args fields before calling pwm_request_from_chip(). Signed-off-by

[PATCH] pwm: Fill pwm->args before calling pwm_request_from_chip()

2016-05-17 Thread Boris Brezillon
Commit e39c0df1be5a ("pwm: Introduce the pwm_args concept"), moved the period and polarity initialization steps into pwm_request_device() (called by pwm_request_from_chip()) based on the pwm->args information. Make sure we fill pwm->args fields before calling pwm_request_from_chip(). Signed-off-by