Re: [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs

2014-02-05 Thread Chanwoo Choi
On 02/05/2014 11:04 PM, Lee Jones wrote:
>>> Following patch has conflict on extcon-next branch(Linus 3.14-rc1)
>>> when apply patchset by using git am.
>>>
>>> [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs
>>> [PATCH 12/18] extcon: max14577: Choose muic_irqs according to device type
>>> [PATCH 14/18] extcon: max14577: Add support for max77836
>>>
>>> The base commit of this patchset isn't mainline. You need to rebase this 
>>> patchset 
>>> on extcon-next branch and please resend this patchset.
> 
> 
> 
>> This patch patch (along with other) depends on previous rename patches
>> from this patchset:
>> [PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols to prepare
>> for max77836
>> http://article.gmane.org/gmane.linux.kernel/1636674
>>
>> I can resolve the conflict but then they will return on applying patch
>> 7/18.
>>
>> I think this patch may wait for a little until the rename-like patches
>> will be accepted.
>>
>> Can you ACK other patches touch extcon?
>>  - [PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols...
>>  - [PATCH 08/18] mfd: max14577: Rename state container to maxim_core
>>  - [PATCH 09/18] mfd: max14577: Add "muic" suffix to regmap and irq_chip
> 
> If you can obtain Acks for all of the patches, I can apply the entire
> patch-set to an immutable branch and issue a pull-request for the
> other maintainers to pull from.
> 

Hi Lee,

OK, I agree your opionion.
I'd like you to apply this patchset dependent on extcon subsytem
on your tree. I acked on following patchset and tested all of this patchset 
series.

Acked-by: Chanwoo Choi 

[PATCH 06/18] extcon: max14577: Change extcon name instead of static name 
according to device type
- I will delete this patch([PATCH 06/18]) on extcon-next branch.
[PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols...
[PATCH 08/18] mfd: max14577: Rename state container to maxim_core
[PATCH 09/18] mfd: max14577: Add "muic" suffix to regmap and irq_chip

[PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs
[PATCH 12/18] extcon: max14577: Choose muic_irqs according to device type
[PATCH 14/18] extcon: max14577: Add support for max77836

Thanks,
Chanwoo Choi

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs

2014-02-05 Thread Lee Jones
> > Following patch has conflict on extcon-next branch(Linus 3.14-rc1)
> > when apply patchset by using git am.
> > 
> > [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs
> > [PATCH 12/18] extcon: max14577: Choose muic_irqs according to device type
> > [PATCH 14/18] extcon: max14577: Add support for max77836
> > 
> > The base commit of this patchset isn't mainline. You need to rebase this 
> > patchset 
> > on extcon-next branch and please resend this patchset.



> This patch patch (along with other) depends on previous rename patches
> from this patchset:
> [PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols to prepare
> for max77836
> http://article.gmane.org/gmane.linux.kernel/1636674
> 
> I can resolve the conflict but then they will return on applying patch
> 7/18.
> 
> I think this patch may wait for a little until the rename-like patches
> will be accepted.
> 
> Can you ACK other patches touch extcon?
>  - [PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols...
>  - [PATCH 08/18] mfd: max14577: Rename state container to maxim_core
>  - [PATCH 09/18] mfd: max14577: Add "muic" suffix to regmap and irq_chip

If you can obtain Acks for all of the patches, I can apply the entire
patch-set to an immutable branch and issue a pull-request for the
other maintainers to pull from.

> > On 01/28/2014 09:18 PM, Krzysztof Kozlowski wrote:
> > > Add max14577 prefix to muic_irqs array. This prepares for max77836
> > > support in this extcon driver.
> > > 
> > > Signed-off-by: Krzysztof Kozlowski 
> > > Cc: Kyungmin Park 
> > > Cc: Marek Szyprowski 
> > > ---
> > >  drivers/extcon/extcon-max14577.c |   12 ++--
> > >  1 file changed, 6 insertions(+), 6 deletions(-)
> > > 
> > > diff --git a/drivers/extcon/extcon-max14577.c 
> > > b/drivers/extcon/extcon-max14577.c
> > > index fd48b4909470..fb343f4042d2 100644
> > > --- a/drivers/extcon/extcon-max14577.c
> > > +++ b/drivers/extcon/extcon-max14577.c
> > > @@ -85,7 +85,7 @@ struct max14577_muic_irq {
> > >   unsigned int virq;
> > >  };
> > >  
> > > -static struct max14577_muic_irq muic_irqs[] = {
> > > +static struct max14577_muic_irq max14577_muic_irqs[] = {
> > >   { MAXIM_IRQ_INT1_ADC,   "muic-ADC" },
> > >   { MAXIM_IRQ_INT1_ADCLOW,"muic-ADCLOW" },
> > >   { MAXIM_IRQ_INT1_ADCERR,"muic-ADCError" },
> > > @@ -541,9 +541,9 @@ static irqreturn_t max14577_muic_irq_handler(int irq, 
> > > void *data)
> > >* However we only need to know whether it was ADC, charger
> > >* or both interrupts so decode IRQ and turn on proper flags.
> > >*/
> > > - for (i = 0; i < ARRAY_SIZE(muic_irqs); i++)
> > > - if (irq == muic_irqs[i].virq)
> > > - irq_type = muic_irqs[i].irq;
> > > + for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++)
> > > + if (irq == max14577_muic_irqs[i].virq)
> > > + irq_type = max14577_muic_irqs[i].irq;
> > >  
> > >   switch (irq_type) {
> > >   case MAXIM_IRQ_INT1_ADC:
> > > @@ -647,8 +647,8 @@ static int max14577_muic_probe(struct platform_device 
> > > *pdev)
> > >   INIT_WORK(>irq_work, max14577_muic_irq_work);
> > >  
> > >   /* Support irq domain for max14577 MUIC device */
> > > - for (i = 0; i < ARRAY_SIZE(muic_irqs); i++) {
> > > - struct max14577_muic_irq *muic_irq = _irqs[i];
> > > + for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++) {
> > > + struct max14577_muic_irq *muic_irq = _muic_irqs[i];
> > >   unsigned int virq = 0;
> > >  
> > >   virq = regmap_irq_get_virq(maxim_core->irq_data_muic,
> > > 
> 

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs

2014-02-05 Thread Krzysztof Kozlowski
On Wed, 2014-02-05 at 09:47 +0900, Chanwoo Choi wrote:
> Hi Krzysztof,
> 
> Following patch has conflict on extcon-next branch(Linus 3.14-rc1)
> when apply patchset by using git am.
> 
> [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs
> [PATCH 12/18] extcon: max14577: Choose muic_irqs according to device type
> [PATCH 14/18] extcon: max14577: Add support for max77836
> 
> The base commit of this patchset isn't mainline. You need to rebase this 
> patchset 
> on extcon-next branch and please resend this patchset.
> 
> Thanks,
> Chanwoo Choi

Hi,

This patch patch (along with other) depends on previous rename patches
from this patchset:
[PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols to prepare
for max77836
http://article.gmane.org/gmane.linux.kernel/1636674

I can resolve the conflict but then they will return on applying patch
7/18.

I think this patch may wait for a little until the rename-like patches
will be accepted.

Can you ACK other patches touch extcon?
 - [PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols...
 - [PATCH 08/18] mfd: max14577: Rename state container to maxim_core
 - [PATCH 09/18] mfd: max14577: Add "muic" suffix to regmap and irq_chip

Best regards,
Krzysztof

> On 01/28/2014 09:18 PM, Krzysztof Kozlowski wrote:
> > Add max14577 prefix to muic_irqs array. This prepares for max77836
> > support in this extcon driver.
> > 
> > Signed-off-by: Krzysztof Kozlowski 
> > Cc: Kyungmin Park 
> > Cc: Marek Szyprowski 
> > ---
> >  drivers/extcon/extcon-max14577.c |   12 ++--
> >  1 file changed, 6 insertions(+), 6 deletions(-)
> > 
> > diff --git a/drivers/extcon/extcon-max14577.c 
> > b/drivers/extcon/extcon-max14577.c
> > index fd48b4909470..fb343f4042d2 100644
> > --- a/drivers/extcon/extcon-max14577.c
> > +++ b/drivers/extcon/extcon-max14577.c
> > @@ -85,7 +85,7 @@ struct max14577_muic_irq {
> > unsigned int virq;
> >  };
> >  
> > -static struct max14577_muic_irq muic_irqs[] = {
> > +static struct max14577_muic_irq max14577_muic_irqs[] = {
> > { MAXIM_IRQ_INT1_ADC,   "muic-ADC" },
> > { MAXIM_IRQ_INT1_ADCLOW,"muic-ADCLOW" },
> > { MAXIM_IRQ_INT1_ADCERR,"muic-ADCError" },
> > @@ -541,9 +541,9 @@ static irqreturn_t max14577_muic_irq_handler(int irq, 
> > void *data)
> >  * However we only need to know whether it was ADC, charger
> >  * or both interrupts so decode IRQ and turn on proper flags.
> >  */
> > -   for (i = 0; i < ARRAY_SIZE(muic_irqs); i++)
> > -   if (irq == muic_irqs[i].virq)
> > -   irq_type = muic_irqs[i].irq;
> > +   for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++)
> > +   if (irq == max14577_muic_irqs[i].virq)
> > +   irq_type = max14577_muic_irqs[i].irq;
> >  
> > switch (irq_type) {
> > case MAXIM_IRQ_INT1_ADC:
> > @@ -647,8 +647,8 @@ static int max14577_muic_probe(struct platform_device 
> > *pdev)
> > INIT_WORK(>irq_work, max14577_muic_irq_work);
> >  
> > /* Support irq domain for max14577 MUIC device */
> > -   for (i = 0; i < ARRAY_SIZE(muic_irqs); i++) {
> > -   struct max14577_muic_irq *muic_irq = _irqs[i];
> > +   for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++) {
> > +   struct max14577_muic_irq *muic_irq = _muic_irqs[i];
> > unsigned int virq = 0;
> >  
> > virq = regmap_irq_get_virq(maxim_core->irq_data_muic,
> > 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs

2014-02-05 Thread Krzysztof Kozlowski
On Wed, 2014-02-05 at 09:47 +0900, Chanwoo Choi wrote:
 Hi Krzysztof,
 
 Following patch has conflict on extcon-next branch(Linus 3.14-rc1)
 when apply patchset by using git am.
 
 [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs
 [PATCH 12/18] extcon: max14577: Choose muic_irqs according to device type
 [PATCH 14/18] extcon: max14577: Add support for max77836
 
 The base commit of this patchset isn't mainline. You need to rebase this 
 patchset 
 on extcon-next branch and please resend this patchset.
 
 Thanks,
 Chanwoo Choi

Hi,

This patch patch (along with other) depends on previous rename patches
from this patchset:
[PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols to prepare
for max77836
http://article.gmane.org/gmane.linux.kernel/1636674

I can resolve the conflict but then they will return on applying patch
7/18.

I think this patch may wait for a little until the rename-like patches
will be accepted.

Can you ACK other patches touch extcon?
 - [PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols...
 - [PATCH 08/18] mfd: max14577: Rename state container to maxim_core
 - [PATCH 09/18] mfd: max14577: Add muic suffix to regmap and irq_chip

Best regards,
Krzysztof

 On 01/28/2014 09:18 PM, Krzysztof Kozlowski wrote:
  Add max14577 prefix to muic_irqs array. This prepares for max77836
  support in this extcon driver.
  
  Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com
  Cc: Kyungmin Park kyungmin.p...@samsung.com
  Cc: Marek Szyprowski m.szyprow...@samsung.com
  ---
   drivers/extcon/extcon-max14577.c |   12 ++--
   1 file changed, 6 insertions(+), 6 deletions(-)
  
  diff --git a/drivers/extcon/extcon-max14577.c 
  b/drivers/extcon/extcon-max14577.c
  index fd48b4909470..fb343f4042d2 100644
  --- a/drivers/extcon/extcon-max14577.c
  +++ b/drivers/extcon/extcon-max14577.c
  @@ -85,7 +85,7 @@ struct max14577_muic_irq {
  unsigned int virq;
   };
   
  -static struct max14577_muic_irq muic_irqs[] = {
  +static struct max14577_muic_irq max14577_muic_irqs[] = {
  { MAXIM_IRQ_INT1_ADC,   muic-ADC },
  { MAXIM_IRQ_INT1_ADCLOW,muic-ADCLOW },
  { MAXIM_IRQ_INT1_ADCERR,muic-ADCError },
  @@ -541,9 +541,9 @@ static irqreturn_t max14577_muic_irq_handler(int irq, 
  void *data)
   * However we only need to know whether it was ADC, charger
   * or both interrupts so decode IRQ and turn on proper flags.
   */
  -   for (i = 0; i  ARRAY_SIZE(muic_irqs); i++)
  -   if (irq == muic_irqs[i].virq)
  -   irq_type = muic_irqs[i].irq;
  +   for (i = 0; i  ARRAY_SIZE(max14577_muic_irqs); i++)
  +   if (irq == max14577_muic_irqs[i].virq)
  +   irq_type = max14577_muic_irqs[i].irq;
   
  switch (irq_type) {
  case MAXIM_IRQ_INT1_ADC:
  @@ -647,8 +647,8 @@ static int max14577_muic_probe(struct platform_device 
  *pdev)
  INIT_WORK(info-irq_work, max14577_muic_irq_work);
   
  /* Support irq domain for max14577 MUIC device */
  -   for (i = 0; i  ARRAY_SIZE(muic_irqs); i++) {
  -   struct max14577_muic_irq *muic_irq = muic_irqs[i];
  +   for (i = 0; i  ARRAY_SIZE(max14577_muic_irqs); i++) {
  +   struct max14577_muic_irq *muic_irq = max14577_muic_irqs[i];
  unsigned int virq = 0;
   
  virq = regmap_irq_get_virq(maxim_core-irq_data_muic,
  

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs

2014-02-05 Thread Lee Jones
  Following patch has conflict on extcon-next branch(Linus 3.14-rc1)
  when apply patchset by using git am.
  
  [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs
  [PATCH 12/18] extcon: max14577: Choose muic_irqs according to device type
  [PATCH 14/18] extcon: max14577: Add support for max77836
  
  The base commit of this patchset isn't mainline. You need to rebase this 
  patchset 
  on extcon-next branch and please resend this patchset.

snip

 This patch patch (along with other) depends on previous rename patches
 from this patchset:
 [PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols to prepare
 for max77836
 http://article.gmane.org/gmane.linux.kernel/1636674
 
 I can resolve the conflict but then they will return on applying patch
 7/18.
 
 I think this patch may wait for a little until the rename-like patches
 will be accepted.
 
 Can you ACK other patches touch extcon?
  - [PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols...
  - [PATCH 08/18] mfd: max14577: Rename state container to maxim_core
  - [PATCH 09/18] mfd: max14577: Add muic suffix to regmap and irq_chip

If you can obtain Acks for all of the patches, I can apply the entire
patch-set to an immutable branch and issue a pull-request for the
other maintainers to pull from.

  On 01/28/2014 09:18 PM, Krzysztof Kozlowski wrote:
   Add max14577 prefix to muic_irqs array. This prepares for max77836
   support in this extcon driver.
   
   Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com
   Cc: Kyungmin Park kyungmin.p...@samsung.com
   Cc: Marek Szyprowski m.szyprow...@samsung.com
   ---
drivers/extcon/extcon-max14577.c |   12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
   
   diff --git a/drivers/extcon/extcon-max14577.c 
   b/drivers/extcon/extcon-max14577.c
   index fd48b4909470..fb343f4042d2 100644
   --- a/drivers/extcon/extcon-max14577.c
   +++ b/drivers/extcon/extcon-max14577.c
   @@ -85,7 +85,7 @@ struct max14577_muic_irq {
 unsigned int virq;
};

   -static struct max14577_muic_irq muic_irqs[] = {
   +static struct max14577_muic_irq max14577_muic_irqs[] = {
 { MAXIM_IRQ_INT1_ADC,   muic-ADC },
 { MAXIM_IRQ_INT1_ADCLOW,muic-ADCLOW },
 { MAXIM_IRQ_INT1_ADCERR,muic-ADCError },
   @@ -541,9 +541,9 @@ static irqreturn_t max14577_muic_irq_handler(int irq, 
   void *data)
  * However we only need to know whether it was ADC, charger
  * or both interrupts so decode IRQ and turn on proper flags.
  */
   - for (i = 0; i  ARRAY_SIZE(muic_irqs); i++)
   - if (irq == muic_irqs[i].virq)
   - irq_type = muic_irqs[i].irq;
   + for (i = 0; i  ARRAY_SIZE(max14577_muic_irqs); i++)
   + if (irq == max14577_muic_irqs[i].virq)
   + irq_type = max14577_muic_irqs[i].irq;

 switch (irq_type) {
 case MAXIM_IRQ_INT1_ADC:
   @@ -647,8 +647,8 @@ static int max14577_muic_probe(struct platform_device 
   *pdev)
 INIT_WORK(info-irq_work, max14577_muic_irq_work);

 /* Support irq domain for max14577 MUIC device */
   - for (i = 0; i  ARRAY_SIZE(muic_irqs); i++) {
   - struct max14577_muic_irq *muic_irq = muic_irqs[i];
   + for (i = 0; i  ARRAY_SIZE(max14577_muic_irqs); i++) {
   + struct max14577_muic_irq *muic_irq = max14577_muic_irqs[i];
 unsigned int virq = 0;

 virq = regmap_irq_get_virq(maxim_core-irq_data_muic,
   
 

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs

2014-02-05 Thread Chanwoo Choi
On 02/05/2014 11:04 PM, Lee Jones wrote:
 Following patch has conflict on extcon-next branch(Linus 3.14-rc1)
 when apply patchset by using git am.

 [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs
 [PATCH 12/18] extcon: max14577: Choose muic_irqs according to device type
 [PATCH 14/18] extcon: max14577: Add support for max77836

 The base commit of this patchset isn't mainline. You need to rebase this 
 patchset 
 on extcon-next branch and please resend this patchset.
 
 snip
 
 This patch patch (along with other) depends on previous rename patches
 from this patchset:
 [PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols to prepare
 for max77836
 http://article.gmane.org/gmane.linux.kernel/1636674

 I can resolve the conflict but then they will return on applying patch
 7/18.

 I think this patch may wait for a little until the rename-like patches
 will be accepted.

 Can you ACK other patches touch extcon?
  - [PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols...
  - [PATCH 08/18] mfd: max14577: Rename state container to maxim_core
  - [PATCH 09/18] mfd: max14577: Add muic suffix to regmap and irq_chip
 
 If you can obtain Acks for all of the patches, I can apply the entire
 patch-set to an immutable branch and issue a pull-request for the
 other maintainers to pull from.
 

Hi Lee,

OK, I agree your opionion.
I'd like you to apply this patchset dependent on extcon subsytem
on your tree. I acked on following patchset and tested all of this patchset 
series.

Acked-by: Chanwoo Choi cw00.c...@samsung.com

[PATCH 06/18] extcon: max14577: Change extcon name instead of static name 
according to device type
- I will delete this patch([PATCH 06/18]) on extcon-next branch.
[PATCH 07/18] mfd: max14577: Rename and add MAX14577 symbols...
[PATCH 08/18] mfd: max14577: Rename state container to maxim_core
[PATCH 09/18] mfd: max14577: Add muic suffix to regmap and irq_chip

[PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs
[PATCH 12/18] extcon: max14577: Choose muic_irqs according to device type
[PATCH 14/18] extcon: max14577: Add support for max77836

Thanks,
Chanwoo Choi

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs

2014-02-04 Thread Chanwoo Choi
Hi Krzysztof,

Following patch has conflict on extcon-next branch(Linus 3.14-rc1)
when apply patchset by using git am.

[PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs
[PATCH 12/18] extcon: max14577: Choose muic_irqs according to device type
[PATCH 14/18] extcon: max14577: Add support for max77836

The base commit of this patchset isn't mainline. You need to rebase this 
patchset 
on extcon-next branch and please resend this patchset.

Thanks,
Chanwoo Choi

On 01/28/2014 09:18 PM, Krzysztof Kozlowski wrote:
> Add max14577 prefix to muic_irqs array. This prepares for max77836
> support in this extcon driver.
> 
> Signed-off-by: Krzysztof Kozlowski 
> Cc: Kyungmin Park 
> Cc: Marek Szyprowski 
> ---
>  drivers/extcon/extcon-max14577.c |   12 ++--
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/extcon/extcon-max14577.c 
> b/drivers/extcon/extcon-max14577.c
> index fd48b4909470..fb343f4042d2 100644
> --- a/drivers/extcon/extcon-max14577.c
> +++ b/drivers/extcon/extcon-max14577.c
> @@ -85,7 +85,7 @@ struct max14577_muic_irq {
>   unsigned int virq;
>  };
>  
> -static struct max14577_muic_irq muic_irqs[] = {
> +static struct max14577_muic_irq max14577_muic_irqs[] = {
>   { MAXIM_IRQ_INT1_ADC,   "muic-ADC" },
>   { MAXIM_IRQ_INT1_ADCLOW,"muic-ADCLOW" },
>   { MAXIM_IRQ_INT1_ADCERR,"muic-ADCError" },
> @@ -541,9 +541,9 @@ static irqreturn_t max14577_muic_irq_handler(int irq, 
> void *data)
>* However we only need to know whether it was ADC, charger
>* or both interrupts so decode IRQ and turn on proper flags.
>*/
> - for (i = 0; i < ARRAY_SIZE(muic_irqs); i++)
> - if (irq == muic_irqs[i].virq)
> - irq_type = muic_irqs[i].irq;
> + for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++)
> + if (irq == max14577_muic_irqs[i].virq)
> + irq_type = max14577_muic_irqs[i].irq;
>  
>   switch (irq_type) {
>   case MAXIM_IRQ_INT1_ADC:
> @@ -647,8 +647,8 @@ static int max14577_muic_probe(struct platform_device 
> *pdev)
>   INIT_WORK(>irq_work, max14577_muic_irq_work);
>  
>   /* Support irq domain for max14577 MUIC device */
> - for (i = 0; i < ARRAY_SIZE(muic_irqs); i++) {
> - struct max14577_muic_irq *muic_irq = _irqs[i];
> + for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++) {
> + struct max14577_muic_irq *muic_irq = _muic_irqs[i];
>   unsigned int virq = 0;
>  
>   virq = regmap_irq_get_virq(maxim_core->irq_data_muic,
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs

2014-02-04 Thread Chanwoo Choi
Hi Krzysztof,

Following patch has conflict on extcon-next branch(Linus 3.14-rc1)
when apply patchset by using git am.

[PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs
[PATCH 12/18] extcon: max14577: Choose muic_irqs according to device type
[PATCH 14/18] extcon: max14577: Add support for max77836

The base commit of this patchset isn't mainline. You need to rebase this 
patchset 
on extcon-next branch and please resend this patchset.

Thanks,
Chanwoo Choi

On 01/28/2014 09:18 PM, Krzysztof Kozlowski wrote:
 Add max14577 prefix to muic_irqs array. This prepares for max77836
 support in this extcon driver.
 
 Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com
 Cc: Kyungmin Park kyungmin.p...@samsung.com
 Cc: Marek Szyprowski m.szyprow...@samsung.com
 ---
  drivers/extcon/extcon-max14577.c |   12 ++--
  1 file changed, 6 insertions(+), 6 deletions(-)
 
 diff --git a/drivers/extcon/extcon-max14577.c 
 b/drivers/extcon/extcon-max14577.c
 index fd48b4909470..fb343f4042d2 100644
 --- a/drivers/extcon/extcon-max14577.c
 +++ b/drivers/extcon/extcon-max14577.c
 @@ -85,7 +85,7 @@ struct max14577_muic_irq {
   unsigned int virq;
  };
  
 -static struct max14577_muic_irq muic_irqs[] = {
 +static struct max14577_muic_irq max14577_muic_irqs[] = {
   { MAXIM_IRQ_INT1_ADC,   muic-ADC },
   { MAXIM_IRQ_INT1_ADCLOW,muic-ADCLOW },
   { MAXIM_IRQ_INT1_ADCERR,muic-ADCError },
 @@ -541,9 +541,9 @@ static irqreturn_t max14577_muic_irq_handler(int irq, 
 void *data)
* However we only need to know whether it was ADC, charger
* or both interrupts so decode IRQ and turn on proper flags.
*/
 - for (i = 0; i  ARRAY_SIZE(muic_irqs); i++)
 - if (irq == muic_irqs[i].virq)
 - irq_type = muic_irqs[i].irq;
 + for (i = 0; i  ARRAY_SIZE(max14577_muic_irqs); i++)
 + if (irq == max14577_muic_irqs[i].virq)
 + irq_type = max14577_muic_irqs[i].irq;
  
   switch (irq_type) {
   case MAXIM_IRQ_INT1_ADC:
 @@ -647,8 +647,8 @@ static int max14577_muic_probe(struct platform_device 
 *pdev)
   INIT_WORK(info-irq_work, max14577_muic_irq_work);
  
   /* Support irq domain for max14577 MUIC device */
 - for (i = 0; i  ARRAY_SIZE(muic_irqs); i++) {
 - struct max14577_muic_irq *muic_irq = muic_irqs[i];
 + for (i = 0; i  ARRAY_SIZE(max14577_muic_irqs); i++) {
 + struct max14577_muic_irq *muic_irq = max14577_muic_irqs[i];
   unsigned int virq = 0;
  
   virq = regmap_irq_get_virq(maxim_core-irq_data_muic,
 

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs

2014-01-28 Thread Krzysztof Kozlowski
Add max14577 prefix to muic_irqs array. This prepares for max77836
support in this extcon driver.

Signed-off-by: Krzysztof Kozlowski 
Cc: Kyungmin Park 
Cc: Marek Szyprowski 
---
 drivers/extcon/extcon-max14577.c |   12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c
index fd48b4909470..fb343f4042d2 100644
--- a/drivers/extcon/extcon-max14577.c
+++ b/drivers/extcon/extcon-max14577.c
@@ -85,7 +85,7 @@ struct max14577_muic_irq {
unsigned int virq;
 };
 
-static struct max14577_muic_irq muic_irqs[] = {
+static struct max14577_muic_irq max14577_muic_irqs[] = {
{ MAXIM_IRQ_INT1_ADC,   "muic-ADC" },
{ MAXIM_IRQ_INT1_ADCLOW,"muic-ADCLOW" },
{ MAXIM_IRQ_INT1_ADCERR,"muic-ADCError" },
@@ -541,9 +541,9 @@ static irqreturn_t max14577_muic_irq_handler(int irq, void 
*data)
 * However we only need to know whether it was ADC, charger
 * or both interrupts so decode IRQ and turn on proper flags.
 */
-   for (i = 0; i < ARRAY_SIZE(muic_irqs); i++)
-   if (irq == muic_irqs[i].virq)
-   irq_type = muic_irqs[i].irq;
+   for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++)
+   if (irq == max14577_muic_irqs[i].virq)
+   irq_type = max14577_muic_irqs[i].irq;
 
switch (irq_type) {
case MAXIM_IRQ_INT1_ADC:
@@ -647,8 +647,8 @@ static int max14577_muic_probe(struct platform_device *pdev)
INIT_WORK(>irq_work, max14577_muic_irq_work);
 
/* Support irq domain for max14577 MUIC device */
-   for (i = 0; i < ARRAY_SIZE(muic_irqs); i++) {
-   struct max14577_muic_irq *muic_irq = _irqs[i];
+   for (i = 0; i < ARRAY_SIZE(max14577_muic_irqs); i++) {
+   struct max14577_muic_irq *muic_irq = _muic_irqs[i];
unsigned int virq = 0;
 
virq = regmap_irq_get_virq(maxim_core->irq_data_muic,
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 11/18] extcon: max14577: Add max14577 prefix to muic_irqs

2014-01-28 Thread Krzysztof Kozlowski
Add max14577 prefix to muic_irqs array. This prepares for max77836
support in this extcon driver.

Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com
Cc: Kyungmin Park kyungmin.p...@samsung.com
Cc: Marek Szyprowski m.szyprow...@samsung.com
---
 drivers/extcon/extcon-max14577.c |   12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c
index fd48b4909470..fb343f4042d2 100644
--- a/drivers/extcon/extcon-max14577.c
+++ b/drivers/extcon/extcon-max14577.c
@@ -85,7 +85,7 @@ struct max14577_muic_irq {
unsigned int virq;
 };
 
-static struct max14577_muic_irq muic_irqs[] = {
+static struct max14577_muic_irq max14577_muic_irqs[] = {
{ MAXIM_IRQ_INT1_ADC,   muic-ADC },
{ MAXIM_IRQ_INT1_ADCLOW,muic-ADCLOW },
{ MAXIM_IRQ_INT1_ADCERR,muic-ADCError },
@@ -541,9 +541,9 @@ static irqreturn_t max14577_muic_irq_handler(int irq, void 
*data)
 * However we only need to know whether it was ADC, charger
 * or both interrupts so decode IRQ and turn on proper flags.
 */
-   for (i = 0; i  ARRAY_SIZE(muic_irqs); i++)
-   if (irq == muic_irqs[i].virq)
-   irq_type = muic_irqs[i].irq;
+   for (i = 0; i  ARRAY_SIZE(max14577_muic_irqs); i++)
+   if (irq == max14577_muic_irqs[i].virq)
+   irq_type = max14577_muic_irqs[i].irq;
 
switch (irq_type) {
case MAXIM_IRQ_INT1_ADC:
@@ -647,8 +647,8 @@ static int max14577_muic_probe(struct platform_device *pdev)
INIT_WORK(info-irq_work, max14577_muic_irq_work);
 
/* Support irq domain for max14577 MUIC device */
-   for (i = 0; i  ARRAY_SIZE(muic_irqs); i++) {
-   struct max14577_muic_irq *muic_irq = muic_irqs[i];
+   for (i = 0; i  ARRAY_SIZE(max14577_muic_irqs); i++) {
+   struct max14577_muic_irq *muic_irq = max14577_muic_irqs[i];
unsigned int virq = 0;
 
virq = regmap_irq_get_virq(maxim_core-irq_data_muic,
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/