* [patch v1 1/1] leds: verify vendor and change license in mlxcpld driver
@ 2016-11-03 19:17 ` Vadim Pasternak
2016-11-04 8:37 ` Jacek Anaszewski
0 siblings, 1 reply; 3+ messages in thread
From: Vadim Pasternak @ 2016-11-03 19:17 UTC (permalink / raw)
To: rpurdie, j.anaszewski; +Cc: linux-leds, linux-kernel, jiri, Vadim Pasternak
Verify that vendor is Mellanox as the first step of initialization.
If it is not - return ENODEV.
Change module license from "GPL v2" to "Dual BSD/GPL".
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
---
drivers/leds/leds-mlxcpld.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/leds/leds-mlxcpld.c b/drivers/leds/leds-mlxcpld.c
index 197ab9b..281482e 100644
--- a/drivers/leds/leds-mlxcpld.c
+++ b/drivers/leds/leds-mlxcpld.c
@@ -400,6 +400,9 @@ static int __init mlxcpld_led_init(void)
struct platform_device *pdev;
int err;
+ if (!dmi_match(DMI_CHASSIS_VENDOR, "Mellanox Technologies Ltd."))
+ return -ENODEV;
+
pdev = platform_device_register_simple(KBUILD_MODNAME, -1, NULL, 0);
if (IS_ERR(pdev)) {
pr_err("Device allocation failed\n");
@@ -426,5 +429,5 @@ module_exit(mlxcpld_led_exit);
MODULE_AUTHOR("Vadim Pasternak <vadimp@mellanox.com>");
MODULE_DESCRIPTION("Mellanox board LED driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("Dual BSD/GPL");
MODULE_ALIAS("platform:leds_mlxcpld");
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [patch v1 1/1] leds: verify vendor and change license in mlxcpld driver
2016-11-03 19:17 ` [patch v1 1/1] leds: verify vendor and change license in mlxcpld driver Vadim Pasternak
@ 2016-11-04 8:37 ` Jacek Anaszewski
2016-11-04 10:18 ` Vadim Pasternak
0 siblings, 1 reply; 3+ messages in thread
From: Jacek Anaszewski @ 2016-11-04 8:37 UTC (permalink / raw)
To: Vadim Pasternak, rpurdie; +Cc: linux-leds, linux-kernel, jiri
Hi Vadim,
On 11/03/2016 08:17 PM, Vadim Pasternak wrote:
> Verify that vendor is Mellanox as the first step of initialization.
> If it is not - return ENODEV.
> Change module license from "GPL v2" to "Dual BSD/GPL".
>
> Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
> ---
> drivers/leds/leds-mlxcpld.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/leds/leds-mlxcpld.c b/drivers/leds/leds-mlxcpld.c
> index 197ab9b..281482e 100644
> --- a/drivers/leds/leds-mlxcpld.c
> +++ b/drivers/leds/leds-mlxcpld.c
> @@ -400,6 +400,9 @@ static int __init mlxcpld_led_init(void)
> struct platform_device *pdev;
> int err;
>
> + if (!dmi_match(DMI_CHASSIS_VENDOR, "Mellanox Technologies Ltd."))
> + return -ENODEV;
> +
> pdev = platform_device_register_simple(KBUILD_MODNAME, -1, NULL, 0);
> if (IS_ERR(pdev)) {
> pr_err("Device allocation failed\n");
> @@ -426,5 +429,5 @@ module_exit(mlxcpld_led_exit);
>
> MODULE_AUTHOR("Vadim Pasternak <vadimp@mellanox.com>");
> MODULE_DESCRIPTION("Mellanox board LED driver");
> -MODULE_LICENSE("GPL v2");
> +MODULE_LICENSE("Dual BSD/GPL");
> MODULE_ALIAS("platform:leds_mlxcpld");
>
Thanks for the patch. Applied.
--
Best regards,
Jacek Anaszewski
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [patch v1 1/1] leds: verify vendor and change license in mlxcpld driver
2016-11-04 8:37 ` Jacek Anaszewski
@ 2016-11-04 10:18 ` Vadim Pasternak
0 siblings, 0 replies; 3+ messages in thread
From: Vadim Pasternak @ 2016-11-04 10:18 UTC (permalink / raw)
To: Jacek Anaszewski, rpurdie; +Cc: linux-leds, linux-kernel, jiri
Hi Jacek,
Thank you very much.
Vadim.
> -----Original Message-----
> From: Jacek Anaszewski [mailto:j.anaszewski@samsung.com]
> Sent: Friday, November 04, 2016 10:38 AM
> To: Vadim Pasternak <vadimp@mellanox.com>; rpurdie@rpsys.net
> Cc: linux-leds@vger.kernel.org; linux-kernel@vger.kernel.org; jiri@resnulli.us
> Subject: Re: [patch v1 1/1] leds: verify vendor and change license in mlxcpld
> driver
>
> Hi Vadim,
>
> On 11/03/2016 08:17 PM, Vadim Pasternak wrote:
> > Verify that vendor is Mellanox as the first step of initialization.
> > If it is not - return ENODEV.
> > Change module license from "GPL v2" to "Dual BSD/GPL".
> >
> > Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
> > ---
> > drivers/leds/leds-mlxcpld.c | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/leds/leds-mlxcpld.c b/drivers/leds/leds-mlxcpld.c
> > index 197ab9b..281482e 100644
> > --- a/drivers/leds/leds-mlxcpld.c
> > +++ b/drivers/leds/leds-mlxcpld.c
> > @@ -400,6 +400,9 @@ static int __init mlxcpld_led_init(void)
> > struct platform_device *pdev;
> > int err;
> >
> > + if (!dmi_match(DMI_CHASSIS_VENDOR, "Mellanox Technologies Ltd."))
> > + return -ENODEV;
> > +
> > pdev = platform_device_register_simple(KBUILD_MODNAME, -1, NULL,
> 0);
> > if (IS_ERR(pdev)) {
> > pr_err("Device allocation failed\n"); @@ -426,5 +429,5 @@
> > module_exit(mlxcpld_led_exit);
> >
> > MODULE_AUTHOR("Vadim Pasternak <vadimp@mellanox.com>");
> > MODULE_DESCRIPTION("Mellanox board LED driver"); -
> MODULE_LICENSE("GPL
> > v2");
> > +MODULE_LICENSE("Dual BSD/GPL");
> > MODULE_ALIAS("platform:leds_mlxcpld");
> >
>
> Thanks for the patch. Applied.
>
> --
> Best regards,
> Jacek Anaszewski
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-11-04 17:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20161103171933epcas3p44d4939851092122a5fb9c985eb125770@epcas3p4.samsung.com>
2016-11-03 19:17 ` [patch v1 1/1] leds: verify vendor and change license in mlxcpld driver Vadim Pasternak
2016-11-04 8:37 ` Jacek Anaszewski
2016-11-04 10:18 ` Vadim Pasternak
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).