Re: [PATCH v2 1/4] mfd: add LP3943 MFD driver

2013-08-14 Thread Linus Walleij
On Mon, Aug 5, 2013 at 9:09 AM, Kim, Milo wrote: > In the meantime, I've reviewed the pin control subsystem, > I think it is not the best way to implement LP3943 driver. > The GPIO controller is OK, but I can't make flexible pin assignment for the > PWM > operation. > For example, multiple outpu

Re: [PATCH v2 1/4] mfd: add LP3943 MFD driver

2013-08-05 Thread Lee Jones
> > > > Although, I think the 0 = 1, 1 = 2 ... stuff is really confusing. Is > > > > there nothing we can do about that? > > > > > > OK, enum value of lp3943_pwm_output can be changed as below because > > > LP3943_PWM_INVALID is not used anymore. > > > > > > enum lp3943_pwm_output { > > > LP3943_

RE: [PATCH v2 1/4] mfd: add LP3943 MFD driver

2013-08-05 Thread Kim, Milo
> > > Although, I think the 0 = 1, 1 = 2 ... stuff is really confusing. Is > > > there nothing we can do about that? > > > > OK, enum value of lp3943_pwm_output can be changed as below because > > LP3943_PWM_INVALID is not used anymore. > > > > enum lp3943_pwm_output { > > LP3943_PWM_OUT0, > >

Re: [PATCH v2 1/4] mfd: add LP3943 MFD driver

2013-08-01 Thread Lee Jones
On Wed, 31 Jul 2013, Kim, Milo wrote: > Thanks for the review, please see my comments. > > > * looks good up to me up to here * > > > > Although, I think the 0 = 1, 1 = 2 ... stuff is really confusing. Is > > there nothing we can do about that? > > OK, enum value of lp3943_pwm_output can be ch

RE: [PATCH v2 1/4] mfd: add LP3943 MFD driver

2013-07-31 Thread Kim, Milo
Thanks for the review, please see my comments. > * looks good up to me up to here * > > Although, I think the 0 = 1, 1 = 2 ... stuff is really confusing. Is > there nothing we can do about that? OK, enum value of lp3943_pwm_output can be changed as below because LP3943_PWM_INVALID is not used a

Re: [PATCH v2 1/4] mfd: add LP3943 MFD driver

2013-07-31 Thread Lee Jones
> Cc: Lee Jones > Cc: Linus Walleij > Cc: Mark Brown > Cc: Samuel Ortiz > Cc: Thierry Reding > Signed-off-by: Milo Kim > --- > drivers/mfd/Kconfig| 11 +++ > drivers/mfd/Makefile |1 + > drivers/mfd/lp3943.c | 165 > >

[PATCH v2 1/4] mfd: add LP3943 MFD driver

2013-07-29 Thread Kim, Milo
LP3943 has 16 output pins which can be used as GPIO expander and PWM generator. * Why do we need GPIO and PWM drivers instead of LED driver? To support LED control and general usage, GPIO and PWM drivers are necessary. According to the datasheet(1), it's just a LED driver which has 16 channel