* [PATCH] mfd: mt6360: Fix MFD cell names and compatibles
@ 2021-01-11 12:35 matthias.bgg
2021-01-11 13:05 ` Gene Chen
0 siblings, 1 reply; 3+ messages in thread
From: matthias.bgg @ 2021-01-11 12:35 UTC (permalink / raw)
To: Lee Jones, Matthias Brugger, Gene Chen
Cc: linux-mediatek, linux-kernel, linux-arm-kernel, Matthias Brugger,
ChiYuan Huang, Gene Chen, Greg Kroah-Hartman, Heikki Krogerus,
Jonathan Cameron
From: Matthias Brugger <mbrugger@suse.com>
MFD cell names and compatibles use '_' instead of '-', which is common
practice for names and the standard for DT compatibles.
This will also fix the probing for the drivers already implemented
(mt6360-adc and mt6360-tcpc).
Fixes: 7edd363421da ("mfd: Add support for PMIC MT6360")
Fixes: 1f4877218f7e ("iio: adc: mt6360: Add ADC driver for MT6360")
Fixes: e1aefcdd394f ("usb typec: mt6360: Add support for mt6360 Type-C driver")
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
---
drivers/mfd/mt6360-core.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-core.c
index 4661c1b29a72..14e649ffe50f 100644
--- a/drivers/mfd/mt6360-core.c
+++ b/drivers/mfd/mt6360-core.c
@@ -292,18 +292,18 @@ static const struct resource mt6360_ldo_resources[] = {
};
static const struct mfd_cell mt6360_devs[] = {
- OF_MFD_CELL("mt6360_adc", mt6360_adc_resources,
- NULL, 0, 0, "mediatek,mt6360_adc"),
- OF_MFD_CELL("mt6360_chg", mt6360_chg_resources,
- NULL, 0, 0, "mediatek,mt6360_chg"),
- OF_MFD_CELL("mt6360_led", mt6360_led_resources,
- NULL, 0, 0, "mediatek,mt6360_led"),
- OF_MFD_CELL("mt6360_pmic", mt6360_pmic_resources,
- NULL, 0, 0, "mediatek,mt6360_pmic"),
- OF_MFD_CELL("mt6360_ldo", mt6360_ldo_resources,
- NULL, 0, 0, "mediatek,mt6360_ldo"),
- OF_MFD_CELL("mt6360_tcpc", NULL,
- NULL, 0, 0, "mediatek,mt6360_tcpc"),
+ OF_MFD_CELL("mt6360-adc", mt6360_adc_resources,
+ NULL, 0, 0, "mediatek,mt6360-adc"),
+ OF_MFD_CELL("mt6360-chg", mt6360_chg_resources,
+ NULL, 0, 0, "mediatek,mt6360-chg"),
+ OF_MFD_CELL("mt6360-led", mt6360_led_resources,
+ NULL, 0, 0, "mediatek,mt6360-led"),
+ OF_MFD_CELL("mt6360-pmic", mt6360_pmic_resources,
+ NULL, 0, 0, "mediatek,mt6360-pmic"),
+ OF_MFD_CELL("mt6360-ldo", mt6360_ldo_resources,
+ NULL, 0, 0, "mediatek,mt6360-ldo"),
+ OF_MFD_CELL("mt6360-tcpc", NULL,
+ NULL, 0, 0, "mediatek,mt6360-tcpc"),
};
static const unsigned short mt6360_slave_addr[MT6360_SLAVE_MAX] = {
--
2.29.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mfd: mt6360: Fix MFD cell names and compatibles
2021-01-11 12:35 [PATCH] mfd: mt6360: Fix MFD cell names and compatibles matthias.bgg
@ 2021-01-11 13:05 ` Gene Chen
2021-01-11 14:38 ` Matthias Brugger
0 siblings, 1 reply; 3+ messages in thread
From: Gene Chen @ 2021-01-11 13:05 UTC (permalink / raw)
To: matthias.bgg
Cc: Lee Jones, Matthias Brugger, Gene Chen,
moderated list:ARM/Mediatek SoC support,
Linux Kernel Mailing List, linux-arm Mailing List,
Matthias Brugger, ChiYuan Huang, Greg Kroah-Hartman,
Heikki Krogerus, Jonathan Cameron
Hi Lee,
This change exists in [PATCH v7 03/11] mfd: mt6360: Indicate sub-dev
compatible name by using "-".
Does patch v7 also merge together to mfd-next?
<matthias.bgg@kernel.org> 於 2021年1月11日 週一 下午8:35寫道:
>
> From: Matthias Brugger <mbrugger@suse.com>
>
> MFD cell names and compatibles use '_' instead of '-', which is common
> practice for names and the standard for DT compatibles.
> This will also fix the probing for the drivers already implemented
> (mt6360-adc and mt6360-tcpc).
>
> Fixes: 7edd363421da ("mfd: Add support for PMIC MT6360")
> Fixes: 1f4877218f7e ("iio: adc: mt6360: Add ADC driver for MT6360")
> Fixes: e1aefcdd394f ("usb typec: mt6360: Add support for mt6360 Type-C driver")
> Signed-off-by: Matthias Brugger <mbrugger@suse.com>
>
> ---
>
> drivers/mfd/mt6360-core.c | 24 ++++++++++++------------
> 1 file changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-core.c
> index 4661c1b29a72..14e649ffe50f 100644
> --- a/drivers/mfd/mt6360-core.c
> +++ b/drivers/mfd/mt6360-core.c
> @@ -292,18 +292,18 @@ static const struct resource mt6360_ldo_resources[] = {
> };
>
> static const struct mfd_cell mt6360_devs[] = {
> - OF_MFD_CELL("mt6360_adc", mt6360_adc_resources,
> - NULL, 0, 0, "mediatek,mt6360_adc"),
> - OF_MFD_CELL("mt6360_chg", mt6360_chg_resources,
> - NULL, 0, 0, "mediatek,mt6360_chg"),
> - OF_MFD_CELL("mt6360_led", mt6360_led_resources,
> - NULL, 0, 0, "mediatek,mt6360_led"),
> - OF_MFD_CELL("mt6360_pmic", mt6360_pmic_resources,
> - NULL, 0, 0, "mediatek,mt6360_pmic"),
> - OF_MFD_CELL("mt6360_ldo", mt6360_ldo_resources,
> - NULL, 0, 0, "mediatek,mt6360_ldo"),
> - OF_MFD_CELL("mt6360_tcpc", NULL,
> - NULL, 0, 0, "mediatek,mt6360_tcpc"),
> + OF_MFD_CELL("mt6360-adc", mt6360_adc_resources,
> + NULL, 0, 0, "mediatek,mt6360-adc"),
> + OF_MFD_CELL("mt6360-chg", mt6360_chg_resources,
> + NULL, 0, 0, "mediatek,mt6360-chg"),
> + OF_MFD_CELL("mt6360-led", mt6360_led_resources,
> + NULL, 0, 0, "mediatek,mt6360-led"),
> + OF_MFD_CELL("mt6360-pmic", mt6360_pmic_resources,
> + NULL, 0, 0, "mediatek,mt6360-pmic"),
> + OF_MFD_CELL("mt6360-ldo", mt6360_ldo_resources,
> + NULL, 0, 0, "mediatek,mt6360-ldo"),
> + OF_MFD_CELL("mt6360-tcpc", NULL,
> + NULL, 0, 0, "mediatek,mt6360-tcpc"),
> };
>
> static const unsigned short mt6360_slave_addr[MT6360_SLAVE_MAX] = {
> --
> 2.29.2
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mfd: mt6360: Fix MFD cell names and compatibles
2021-01-11 13:05 ` Gene Chen
@ 2021-01-11 14:38 ` Matthias Brugger
0 siblings, 0 replies; 3+ messages in thread
From: Matthias Brugger @ 2021-01-11 14:38 UTC (permalink / raw)
To: Gene Chen, matthias.bgg
Cc: Lee Jones, Matthias Brugger, Gene Chen,
moderated list:ARM/Mediatek SoC support,
Linux Kernel Mailing List, linux-arm Mailing List, ChiYuan Huang,
Greg Kroah-Hartman, Heikki Krogerus, Jonathan Cameron
On 11/01/2021 14:05, Gene Chen wrote:
> Hi Lee,
>
> This change exists in [PATCH v7 03/11] mfd: mt6360: Indicate sub-dev
> compatible name by using "-".
> Does patch v7 also merge together to mfd-next?
>
once again, please don't top-post.
Sorry I didn't saw this patch. Looks good to me, so please ignore this patch mine.
Regards,
Matthias
> <matthias.bgg@kernel.org> 於 2021年1月11日 週一 下午8:35寫道:
>>
>> From: Matthias Brugger <mbrugger@suse.com>
>>
>> MFD cell names and compatibles use '_' instead of '-', which is common
>> practice for names and the standard for DT compatibles.
>> This will also fix the probing for the drivers already implemented
>> (mt6360-adc and mt6360-tcpc).
>>
>> Fixes: 7edd363421da ("mfd: Add support for PMIC MT6360")
>> Fixes: 1f4877218f7e ("iio: adc: mt6360: Add ADC driver for MT6360")
>> Fixes: e1aefcdd394f ("usb typec: mt6360: Add support for mt6360 Type-C driver")
>> Signed-off-by: Matthias Brugger <mbrugger@suse.com>
>>
>> ---
>>
>> drivers/mfd/mt6360-core.c | 24 ++++++++++++------------
>> 1 file changed, 12 insertions(+), 12 deletions(-)
>>
>> diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-core.c
>> index 4661c1b29a72..14e649ffe50f 100644
>> --- a/drivers/mfd/mt6360-core.c
>> +++ b/drivers/mfd/mt6360-core.c
>> @@ -292,18 +292,18 @@ static const struct resource mt6360_ldo_resources[] = {
>> };
>>
>> static const struct mfd_cell mt6360_devs[] = {
>> - OF_MFD_CELL("mt6360_adc", mt6360_adc_resources,
>> - NULL, 0, 0, "mediatek,mt6360_adc"),
>> - OF_MFD_CELL("mt6360_chg", mt6360_chg_resources,
>> - NULL, 0, 0, "mediatek,mt6360_chg"),
>> - OF_MFD_CELL("mt6360_led", mt6360_led_resources,
>> - NULL, 0, 0, "mediatek,mt6360_led"),
>> - OF_MFD_CELL("mt6360_pmic", mt6360_pmic_resources,
>> - NULL, 0, 0, "mediatek,mt6360_pmic"),
>> - OF_MFD_CELL("mt6360_ldo", mt6360_ldo_resources,
>> - NULL, 0, 0, "mediatek,mt6360_ldo"),
>> - OF_MFD_CELL("mt6360_tcpc", NULL,
>> - NULL, 0, 0, "mediatek,mt6360_tcpc"),
>> + OF_MFD_CELL("mt6360-adc", mt6360_adc_resources,
>> + NULL, 0, 0, "mediatek,mt6360-adc"),
>> + OF_MFD_CELL("mt6360-chg", mt6360_chg_resources,
>> + NULL, 0, 0, "mediatek,mt6360-chg"),
>> + OF_MFD_CELL("mt6360-led", mt6360_led_resources,
>> + NULL, 0, 0, "mediatek,mt6360-led"),
>> + OF_MFD_CELL("mt6360-pmic", mt6360_pmic_resources,
>> + NULL, 0, 0, "mediatek,mt6360-pmic"),
>> + OF_MFD_CELL("mt6360-ldo", mt6360_ldo_resources,
>> + NULL, 0, 0, "mediatek,mt6360-ldo"),
>> + OF_MFD_CELL("mt6360-tcpc", NULL,
>> + NULL, 0, 0, "mediatek,mt6360-tcpc"),
>> };
>>
>> static const unsigned short mt6360_slave_addr[MT6360_SLAVE_MAX] = {
>> --
>> 2.29.2
>>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-11 14:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 12:35 [PATCH] mfd: mt6360: Fix MFD cell names and compatibles matthias.bgg
2021-01-11 13:05 ` Gene Chen
2021-01-11 14:38 ` Matthias Brugger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).