From: Chanwoo Choi <cw00.choi@samsung.com>
To: "Krzysztof Kozłowski" <k.kozlowski.k@gmail.com>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Samuel Ortiz <sameo@linux.intel.com>,
Lee Jones <lee.jones@linaro.org>,
Sebastian Reichel <sre@kernel.org>,
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
David Woodhouse <dwmw2@infradead.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
linux-pm@vger.kernel.org
Subject: Re: [PATCH 01/10] mfd/extcon: max77693: Remove unused extern declarations and max77693_dev members
Date: Mon, 04 May 2015 15:54:30 +0900 [thread overview]
Message-ID: <554717A6.40807@samsung.com> (raw)
In-Reply-To: <CAJKOXPfcir+NPa2Abj8PBtyxn_b8cb+E8wDL9nAuTyO2soDQEw@mail.gmail.com>
On 05/04/2015 03:49 PM, Krzysztof Kozłowski wrote:
> 2015-05-04 15:45 GMT+09:00 Chanwoo Choi <cw00.choi@samsung.com>:
>> On 04/29/2015 07:58 PM, Krzysztof Kozlowski wrote:
>>> Clean up the max77693 private header file by removing:
>>> 1. Left-overs from previous way of interrupt handling (driver uses
>>> regmap_irq_chip).
>>> 2. Unused members of struct 'max77693_dev' related to interrupts in
>>> extcon driver.
>>>
>>> Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
>>> ---
>>> drivers/extcon/extcon-max77693.c | 4 ----
>>> include/linux/mfd/max77693-private.h | 8 --------
>>> 2 files changed, 12 deletions(-)
>>>
>>> diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
>>> index a66bec8f6252..760e1e2cc1ce 100644
>>> --- a/drivers/extcon/extcon-max77693.c
>>> +++ b/drivers/extcon/extcon-max77693.c
>>> @@ -1218,10 +1218,6 @@ static int max77693_muic_probe(struct platform_device *pdev)
>>> irq_src = MUIC_INT3;
>>> break;
>>> }
>>> -
>>> - if (irq_src < MAX77693_IRQ_GROUP_NR)
>>> - info->max77693->irq_masks_cur[irq_src]
>>> - = init_data[i].data;
>>> }
>>
>> When removing the unused statement, I think you better to remove it as following:
>> because 'enum max77693_irq_source irq_src' is not used.
>
> Yes, you're right. Actually some time ago I removed all of this:
> extcon: max77693: Remove left-over code after switching to regmap irq chip
> http://lkml.iu.edu/hypermail/linux/kernel/1410.2/03403.html
>
>>
>> for (i = 0; i < num_init_data; i++) {
>> - enum max77693_irq_source irq_src
>> - = MAX77693_IRQ_GROUP_NR;
>> -
>> regmap_write(info->max77693->regmap_muic,
>> init_data[i].addr,
>> init_data[i].data);
>> -
>> - switch (init_data[i].addr) {
>> - case MAX77693_MUIC_REG_INTMASK1:
>> - irq_src = MUIC_INT1;
>> - break;
>> - case MAX77693_MUIC_REG_INTMASK2:
>> - irq_src = MUIC_INT2;
>> - break;
>> - case MAX77693_MUIC_REG_INTMASK3:
>> - irq_src = MUIC_INT3;
>> - break;
>> - }
>> -
>> - if (irq_src < MAX77693_IRQ_GROUP_NR)
>> - info->max77693->irq_masks_cur[irq_src]
>> - = init_data[i].data;
>> }
>>
>> [snip]
>>
>> Except for upper comment, Looks good to me.
>
> Okay, I'll do as you suggested and add your ack (in case it will go
> through some other tree).
I'm wondering the merge confilct if this patch will be merged on other tree.
Because extcon-max77693.c was already modified on extcon-next branch.
So, If the base commit of this patch is different, there are potential merge conflict.
Thanks,
Chanwoo Choi
next prev parent reply other threads:[~2015-05-04 6:54 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-29 10:58 [PATCH 00/10] regulator/power/mfd/input/extcon: Merge max77843 into max77693 Krzysztof Kozlowski
2015-04-29 10:58 ` [PATCH 01/10] mfd/extcon: max77693: Remove unused extern declarations and max77693_dev members Krzysztof Kozlowski
2015-05-04 6:45 ` Chanwoo Choi
2015-05-04 6:49 ` Krzysztof Kozłowski
2015-05-04 6:54 ` Chanwoo Choi [this message]
2015-05-04 7:01 ` Krzysztof Kozłowski
2015-05-05 8:24 ` Lee Jones
2015-04-29 10:58 ` [PATCH 02/10] mfd: max77693: Store I2C device type as enum and add default unknown Krzysztof Kozlowski
2015-04-29 10:58 ` [PATCH 03/10] regulator: max77693: Use core code for charger's is_enabled Krzysztof Kozlowski
2015-04-29 11:03 ` Mark Brown
2015-04-29 11:08 ` Krzysztof Kozłowski
2015-04-29 10:58 ` [PATCH 04/10] regulator: max77693: Support different register configurations Krzysztof Kozlowski
2015-04-29 17:41 ` Mark Brown
2015-04-29 10:58 ` [PATCH 05/10] max77693: Move state container to common header Krzysztof Kozlowski
2015-05-23 15:11 ` Sebastian Reichel
2015-05-27 9:17 ` Lee Jones
2015-04-29 10:58 ` [PATCH 06/10] max77843: Switch to common max77693 state container Krzysztof Kozlowski
2015-04-29 10:58 ` [PATCH 07/10] mfd/extcon: max77693: Rename defines to allow inclusion with max77843 Krzysztof Kozlowski
2015-04-29 13:12 ` Lee Jones
2015-04-29 13:23 ` Krzysztof Kozłowski
2015-04-29 10:58 ` [PATCH 08/10] mfd/extcon: max77843: Rename defines to allow inclusion with max77693 Krzysztof Kozlowski
2015-04-29 13:11 ` Lee Jones
2015-04-29 10:58 ` [PATCH 09/10] regulator: max77693: Add support for MAX77843 device Krzysztof Kozlowski
2015-04-29 17:58 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=554717A6.40807@samsung.com \
--to=cw00.choi@samsung.com \
--cc=broonie@kernel.org \
--cc=dbaryshkov@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=dwmw2@infradead.org \
--cc=k.kozlowski.k@gmail.com \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=sameo@linux.intel.com \
--cc=sre@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox