* [PATCH] phy: phy-samsung-usb2: Don't use same name for driver name and global structure
@ 2014-11-12 10:24 Vivek Gautam
2014-12-11 6:29 ` Vivek Gautam
0 siblings, 1 reply; 4+ messages in thread
From: Vivek Gautam @ 2014-11-12 10:24 UTC (permalink / raw)
To: linux-kernel
Cc: linux-usb, Vivek Gautam, Kamil Debski, Kishon Vijay Abraham I
Using the same driver name for platform driver and a globally defined,
structure used throughout the file, looks a bit unpleasing.
So changing the driver name from "samsung_usb2_phy_driver" to
"samsung_usb2_phy"
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Kamil Debski <k.debski@samsung.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
---
drivers/phy/phy-samsung-usb2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/phy/phy-samsung-usb2.c b/drivers/phy/phy-samsung-usb2.c
index 908949d..2934fb7 100644
--- a/drivers/phy/phy-samsung-usb2.c
+++ b/drivers/phy/phy-samsung-usb2.c
@@ -226,7 +226,7 @@ static int samsung_usb2_phy_probe(struct platform_device *pdev)
return 0;
}
-static struct platform_driver samsung_usb2_phy_driver = {
+static struct platform_driver samsung_usb2_phy = {
.probe = samsung_usb2_phy_probe,
.driver = {
.of_match_table = samsung_usb2_phy_of_match,
@@ -234,7 +234,7 @@ static struct platform_driver samsung_usb2_phy_driver = {
}
};
-module_platform_driver(samsung_usb2_phy_driver);
+module_platform_driver(samsung_usb2_phy);
MODULE_DESCRIPTION("Samsung S5P/EXYNOS SoC USB PHY driver");
MODULE_AUTHOR("Kamil Debski <k.debski@samsung.com>");
MODULE_LICENSE("GPL v2");
--
1.7.10.4
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] phy: phy-samsung-usb2: Don't use same name for driver name and global structure
2014-11-12 10:24 [PATCH] phy: phy-samsung-usb2: Don't use same name for driver name and global structure Vivek Gautam
@ 2014-12-11 6:29 ` Vivek Gautam
2014-12-11 10:43 ` Kamil Debski
0 siblings, 1 reply; 4+ messages in thread
From: Vivek Gautam @ 2014-12-11 6:29 UTC (permalink / raw)
To: Kishon Vijay Abraham I, Kamil Debski
Cc: linux-kernel, Linux USB Mailing List, Vivek Gautam
On Wed, Nov 12, 2014 at 3:54 PM, Vivek Gautam <gautam.vivek@samsung.com> wrote:
> Using the same driver name for platform driver and a globally defined,
> structure used throughout the file, looks a bit unpleasing.
> So changing the driver name from "samsung_usb2_phy_driver" to
> "samsung_usb2_phy"
>
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> Cc: Kamil Debski <k.debski@samsung.com>
> Cc: Kishon Vijay Abraham I <kishon@ti.com>
> ---
Although just a trivial change, does it look valid ?
> drivers/phy/phy-samsung-usb2.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/phy/phy-samsung-usb2.c b/drivers/phy/phy-samsung-usb2.c
> index 908949d..2934fb7 100644
> --- a/drivers/phy/phy-samsung-usb2.c
> +++ b/drivers/phy/phy-samsung-usb2.c
> @@ -226,7 +226,7 @@ static int samsung_usb2_phy_probe(struct platform_device *pdev)
> return 0;
> }
>
> -static struct platform_driver samsung_usb2_phy_driver = {
> +static struct platform_driver samsung_usb2_phy = {
> .probe = samsung_usb2_phy_probe,
> .driver = {
> .of_match_table = samsung_usb2_phy_of_match,
> @@ -234,7 +234,7 @@ static struct platform_driver samsung_usb2_phy_driver = {
> }
> };
>
> -module_platform_driver(samsung_usb2_phy_driver);
> +module_platform_driver(samsung_usb2_phy);
> MODULE_DESCRIPTION("Samsung S5P/EXYNOS SoC USB PHY driver");
> MODULE_AUTHOR("Kamil Debski <k.debski@samsung.com>");
> MODULE_LICENSE("GPL v2");
> --
> 1.7.10.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
Best Regards
Vivek Gautam
Samsung R&D Institute, Bangalore
India
^ permalink raw reply [flat|nested] 4+ messages in thread* RE: [PATCH] phy: phy-samsung-usb2: Don't use same name for driver name and global structure
2014-12-11 6:29 ` Vivek Gautam
@ 2014-12-11 10:43 ` Kamil Debski
2014-12-11 11:00 ` Vivek Gautam
0 siblings, 1 reply; 4+ messages in thread
From: Kamil Debski @ 2014-12-11 10:43 UTC (permalink / raw)
To: 'Vivek Gautam', 'Kishon Vijay Abraham I'
Cc: linux-kernel, 'Linux USB Mailing List', 'Vivek Gautam'
Hi,
> From: Vivek Gautam [mailto:gautamvivek1987@gmail.com]
> Sent: Thursday, December 11, 2014 7:30 AM
> To: Kishon Vijay Abraham I; Kamil Debski
> Cc: linux-kernel@vger.kernel.org; Linux USB Mailing List; Vivek Gautam
> Subject: Re: [PATCH] phy: phy-samsung-usb2: Don't use same name for
> driver name and global structure
>
> On Wed, Nov 12, 2014 at 3:54 PM, Vivek Gautam <gautam.vivek@samsung.com>
> wrote:
> > Using the same driver name for platform driver and a globally defined,
> > structure used throughout the file, looks a bit unpleasing.
> > So changing the driver name from "samsung_usb2_phy_driver" to
> > "samsung_usb2_phy"
> >
> > Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> > Cc: Kamil Debski <k.debski@samsung.com>
> > Cc: Kishon Vijay Abraham I <kishon@ti.com>
> > ---
>
> Although just a trivial change, does it look valid ?
I can agree that the naming of this variable is a bit unfortunate.
Changing name of samsung_usb2_phy_driver to samsung_usb2_phy is, as
you said, a minor change and does not change how the driver works.
Acked-by: Kamil Debski <k.debski@samsung.com>
Best wishes,
--
Kamil Debski
Samsung R&D Institute Poland
>
> > drivers/phy/phy-samsung-usb2.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/phy/phy-samsung-usb2.c b/drivers/phy/phy-
> samsung-usb2.c
> > index 908949d..2934fb7 100644
> > --- a/drivers/phy/phy-samsung-usb2.c
> > +++ b/drivers/phy/phy-samsung-usb2.c
> > @@ -226,7 +226,7 @@ static int samsung_usb2_phy_probe(struct
> platform_device *pdev)
> > return 0;
> > }
> >
> > -static struct platform_driver samsung_usb2_phy_driver = {
> > +static struct platform_driver samsung_usb2_phy = {
> > .probe = samsung_usb2_phy_probe,
> > .driver = {
> > .of_match_table = samsung_usb2_phy_of_match,
> > @@ -234,7 +234,7 @@ static struct platform_driver
> samsung_usb2_phy_driver = {
> > }
> > };
> >
> > -module_platform_driver(samsung_usb2_phy_driver);
> > +module_platform_driver(samsung_usb2_phy);
> > MODULE_DESCRIPTION("Samsung S5P/EXYNOS SoC USB PHY driver");
> > MODULE_AUTHOR("Kamil Debski <k.debski@samsung.com>");
> > MODULE_LICENSE("GPL v2");
> > --
> > 1.7.10.4
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-
> kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
>
>
>
> --
> Best Regards
> Vivek Gautam
> Samsung R&D Institute, Bangalore
> India
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] phy: phy-samsung-usb2: Don't use same name for driver name and global structure
2014-12-11 10:43 ` Kamil Debski
@ 2014-12-11 11:00 ` Vivek Gautam
0 siblings, 0 replies; 4+ messages in thread
From: Vivek Gautam @ 2014-12-11 11:00 UTC (permalink / raw)
To: Kamil Debski
Cc: Kishon Vijay Abraham I, linux-kernel, Linux USB Mailing List,
Vivek Gautam
On Thu, Dec 11, 2014 at 4:13 PM, Kamil Debski <k.debski@samsung.com> wrote:
> Hi,
>
>> From: Vivek Gautam [mailto:gautamvivek1987@gmail.com]
>> Sent: Thursday, December 11, 2014 7:30 AM
>> To: Kishon Vijay Abraham I; Kamil Debski
>> Cc: linux-kernel@vger.kernel.org; Linux USB Mailing List; Vivek Gautam
>> Subject: Re: [PATCH] phy: phy-samsung-usb2: Don't use same name for
>> driver name and global structure
>>
>> On Wed, Nov 12, 2014 at 3:54 PM, Vivek Gautam <gautam.vivek@samsung.com>
>> wrote:
>> > Using the same driver name for platform driver and a globally defined,
>> > structure used throughout the file, looks a bit unpleasing.
>> > So changing the driver name from "samsung_usb2_phy_driver" to
>> > "samsung_usb2_phy"
>> >
>> > Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
>> > Cc: Kamil Debski <k.debski@samsung.com>
>> > Cc: Kishon Vijay Abraham I <kishon@ti.com>
>> > ---
>>
>> Although just a trivial change, does it look valid ?
>
> I can agree that the naming of this variable is a bit unfortunate.
> Changing name of samsung_usb2_phy_driver to samsung_usb2_phy is, as
> you said, a minor change and does not change how the driver works.
true.
>
> Acked-by: Kamil Debski <k.debski@samsung.com>
Thanks
>
> Best wishes,
> --
> Kamil Debski
> Samsung R&D Institute Poland
>
>>
>> > drivers/phy/phy-samsung-usb2.c | 4 ++--
>> > 1 file changed, 2 insertions(+), 2 deletions(-)
>> >
>> > diff --git a/drivers/phy/phy-samsung-usb2.c b/drivers/phy/phy-
>> samsung-usb2.c
>> > index 908949d..2934fb7 100644
>> > --- a/drivers/phy/phy-samsung-usb2.c
>> > +++ b/drivers/phy/phy-samsung-usb2.c
>> > @@ -226,7 +226,7 @@ static int samsung_usb2_phy_probe(struct
>> platform_device *pdev)
>> > return 0;
>> > }
>> >
>> > -static struct platform_driver samsung_usb2_phy_driver = {
>> > +static struct platform_driver samsung_usb2_phy = {
>> > .probe = samsung_usb2_phy_probe,
>> > .driver = {
>> > .of_match_table = samsung_usb2_phy_of_match,
>> > @@ -234,7 +234,7 @@ static struct platform_driver
>> samsung_usb2_phy_driver = {
>> > }
>> > };
>> >
>> > -module_platform_driver(samsung_usb2_phy_driver);
>> > +module_platform_driver(samsung_usb2_phy);
>> > MODULE_DESCRIPTION("Samsung S5P/EXYNOS SoC USB PHY driver");
>> > MODULE_AUTHOR("Kamil Debski <k.debski@samsung.com>");
>> > MODULE_LICENSE("GPL v2");
>> > --
>> > 1.7.10.4
>> >
>> > --
>> > To unsubscribe from this list: send the line "unsubscribe linux-
>> kernel" in
>> > the body of a message to majordomo@vger.kernel.org
>> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>> > Please read the FAQ at http://www.tux.org/lkml/
>>
>>
>>
>> --
>> Best Regards
>> Vivek Gautam
>> Samsung R&D Institute, Bangalore
>> India
>
--
Best Regards
Vivek Gautam
Samsung R&D Institute, Bangalore
India
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-11 11:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-12 10:24 [PATCH] phy: phy-samsung-usb2: Don't use same name for driver name and global structure Vivek Gautam
2014-12-11 6:29 ` Vivek Gautam
2014-12-11 10:43 ` Kamil Debski
2014-12-11 11:00 ` Vivek Gautam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®