diff mbox

[1/3] Staging: iio: adis16209: Use SPDX identifier

Message ID 6771b95bbfb8301724086dba4d92df6a6b11d6f7.1518883035.git.shreeya.patel23498@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Shreeya Patel Feb. 17, 2018, 4:04 p.m. UTC
Use SPDX identifier format instead of GPLv2. Also rearrange the
headers in alphabetical order.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
---
 drivers/staging/iio/accel/adis16209.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Comments

Himanshu Jha Feb. 18, 2018, 11:31 a.m. UTC | #1
Hi Shreeya,

On Sat, Feb 17, 2018 at 09:34:56PM +0530, Shreeya Patel wrote:
> Use SPDX identifier format instead of GPLv2. Also rearrange the
> headers in alphabetical order.
> 
> Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
> ---
>  drivers/staging/iio/accel/adis16209.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c
> index 7fcef9a..e3d9f80 100644
> --- a/drivers/staging/iio/accel/adis16209.c
> +++ b/drivers/staging/iio/accel/adis16209.c
> @@ -1,19 +1,18 @@
> +// SPDX-License-Identifier: GPL-2.0+
>  /*
>   * ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer
>   *
>   * Copyright 2010 Analog Devices Inc.
> - *
> - * Licensed under the GPL-2 or later.

I see that you too are doing similar cleanup which I did a while ago
https://lkml.org/lkml/2018/2/12/255
where I got some update suggestions for the patch series. It would be
great if you could update this patch series consistent with the
reviewers.

For eg: in this patch you changed 

+// SPDX-License-Identifier: GPL-2.0+

and therefore

MODULE_LICENSE("GPL v2");

should also be changed to 

MODULE_LICENSE("GPL"); 

as explained by	Philippe Ombredanne to me in my patch series.

I am not sure if you're subscribed to the IIO mailing list but you can find
all the update suggestions from the above link. :)
Shreeya Patel Feb. 18, 2018, 11:37 a.m. UTC | #2
On Sun, 2018-02-18 at 17:01 +0530, Himanshu Jha wrote:
> Hi Shreeya,
> 
Hi Himanshu,

> On Sat, Feb 17, 2018 at 09:34:56PM +0530, Shreeya Patel wrote:
> > 
> > Use SPDX identifier format instead of GPLv2. Also rearrange the
> > headers in alphabetical order.
> > 
> > Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
> > ---
> >  drivers/staging/iio/accel/adis16209.c | 7 +++----
> >  1 file changed, 3 insertions(+), 4 deletions(-)
> > 
> > diff --git a/drivers/staging/iio/accel/adis16209.c
> > b/drivers/staging/iio/accel/adis16209.c
> > index 7fcef9a..e3d9f80 100644
> > --- a/drivers/staging/iio/accel/adis16209.c
> > +++ b/drivers/staging/iio/accel/adis16209.c
> > @@ -1,19 +1,18 @@
> > +// SPDX-License-Identifier: GPL-2.0+
> >  /*
> >   * ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer
> >   *
> >   * Copyright 2010 Analog Devices Inc.
> > - *
> > - * Licensed under the GPL-2 or later.
> I see that you too are doing similar cleanup which I did a while ago
> https://lkml.org/lkml/2018/2/12/255

Yes, Jonathan suggested me to work on adis16209.
Your patches were quite useful for me :)

> where I got some update suggestions for the patch series. It would be
> great if you could update this patch series consistent with the
> reviewers.
> 
> For eg: in this patch you changed 
> 
> +// SPDX-License-Identifier: GPL-2.0+
> 
> and therefore
> 
> MODULE_LICENSE("GPL v2");
> 
> should also be changed to 
> 
> MODULE_LICENSE("GPL"); 
> 
> as explained by	Philippe Ombredanne to me in my patch series.

Great.
I'll make the necessary changes.

> 
> I am not sure if you're subscribed to the IIO mailing list but you
> can find
> all the update suggestions from the above link. :)

Thanks for your suggestions 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jonathan Cameron Feb. 18, 2018, 12:02 p.m. UTC | #3
On Sun, 18 Feb 2018 17:07:57 +0530
Shreeya Patel <shreeya.patel23498@gmail.com> wrote:

> On Sun, 2018-02-18 at 17:01 +0530, Himanshu Jha wrote:
> > Hi Shreeya,
> >   
> Hi Himanshu,
> 
> > On Sat, Feb 17, 2018 at 09:34:56PM +0530, Shreeya Patel wrote:  
> > > 
> > > Use SPDX identifier format instead of GPLv2. Also rearrange the
> > > headers in alphabetical order.
> > > 
> > > Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
> > > ---
> > >  drivers/staging/iio/accel/adis16209.c | 7 +++----
> > >  1 file changed, 3 insertions(+), 4 deletions(-)
> > > 
> > > diff --git a/drivers/staging/iio/accel/adis16209.c
> > > b/drivers/staging/iio/accel/adis16209.c
> > > index 7fcef9a..e3d9f80 100644
> > > --- a/drivers/staging/iio/accel/adis16209.c
> > > +++ b/drivers/staging/iio/accel/adis16209.c
> > > @@ -1,19 +1,18 @@
> > > +// SPDX-License-Identifier: GPL-2.0+
> > >  /*
> > >   * ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer
> > >   *
> > >   * Copyright 2010 Analog Devices Inc.
> > > - *
> > > - * Licensed under the GPL-2 or later.  
> > I see that you too are doing similar cleanup which I did a while ago
> > https://lkml.org/lkml/2018/2/12/255  
> 
> Yes, Jonathan suggested me to work on adis16209.
> Your patches were quite useful for me :)
> 
> > where I got some update suggestions for the patch series. It would be
> > great if you could update this patch series consistent with the
> > reviewers.
> > 
> > For eg: in this patch you changed 
> > 
> > +// SPDX-License-Identifier: GPL-2.0+
> > 
> > and therefore
> > 
> > MODULE_LICENSE("GPL v2");
> > 
> > should also be changed to 
> > 
> > MODULE_LICENSE("GPL"); 
> > 
> > as explained by	Philippe Ombredanne to me in my patch series.  
> 
I'm not sure that was exactly what Philippe was suggesting.
He was making the point that the licensing was inconsistent without
saying which option should be chosen.

We will need to seek clarification from Analog Devices
on what their opinion on this is.

Lars / Michael, any clarification on the right way to resolve this
inconsistency?

> Great.
> I'll make the necessary changes.
> 
> > 
> > I am not sure if you're subscribed to the IIO mailing list but you
> > can find
> > all the update suggestions from the above link. :)  
> 
> Thanks for your suggestions 
> >   
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jonathan Cameron Feb. 18, 2018, 12:04 p.m. UTC | #4
On Sat, 17 Feb 2018 21:34:56 +0530
Shreeya Patel <shreeya.patel23498@gmail.com> wrote:

> Use SPDX identifier format instead of GPLv2. Also rearrange the
> headers in alphabetical order.

As Dan pointed out for the Himanshu Jha's patches, the moment
we see the word 'also' in a patch it pretty much makes it obvious
that the author knows it is doing two things.

Two patches please.  This is all about making the changes
trivial to review.  Sometimes it may seem silly where we have
two small changes like here, but when you are reviewing hundreds
of patches it really does help.

Jonathan

> 
> Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
> ---
>  drivers/staging/iio/accel/adis16209.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c
> index 7fcef9a..e3d9f80 100644
> --- a/drivers/staging/iio/accel/adis16209.c
> +++ b/drivers/staging/iio/accel/adis16209.c
> @@ -1,19 +1,18 @@
> +// SPDX-License-Identifier: GPL-2.0+
>  /*
>   * ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer
>   *
>   * Copyright 2010 Analog Devices Inc.
> - *
> - * Licensed under the GPL-2 or later.
>   */
>  
>  #include <linux/delay.h>
>  #include <linux/device.h>
>  #include <linux/kernel.h>
> +#include <linux/list.h>
> +#include <linux/module.h>
>  #include <linux/spi/spi.h>
>  #include <linux/slab.h>
>  #include <linux/sysfs.h>
> -#include <linux/list.h>
> -#include <linux/module.h>
>  
>  #include <linux/iio/iio.h>
>  #include <linux/iio/sysfs.h>

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Lars-Peter Clausen Feb. 18, 2018, 12:08 p.m. UTC | #5
On 02/18/2018 01:02 PM, Jonathan Cameron wrote:
> On Sun, 18 Feb 2018 17:07:57 +0530
> Shreeya Patel <shreeya.patel23498@gmail.com> wrote:
> 
>> On Sun, 2018-02-18 at 17:01 +0530, Himanshu Jha wrote:
>>> Hi Shreeya,
>>>   
>> Hi Himanshu,
>>
>>> On Sat, Feb 17, 2018 at 09:34:56PM +0530, Shreeya Patel wrote:  
>>>>
>>>> Use SPDX identifier format instead of GPLv2. Also rearrange the
>>>> headers in alphabetical order.
>>>>
>>>> Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
>>>> ---
>>>>  drivers/staging/iio/accel/adis16209.c | 7 +++----
>>>>  1 file changed, 3 insertions(+), 4 deletions(-)
>>>>
>>>> diff --git a/drivers/staging/iio/accel/adis16209.c
>>>> b/drivers/staging/iio/accel/adis16209.c
>>>> index 7fcef9a..e3d9f80 100644
>>>> --- a/drivers/staging/iio/accel/adis16209.c
>>>> +++ b/drivers/staging/iio/accel/adis16209.c
>>>> @@ -1,19 +1,18 @@
>>>> +// SPDX-License-Identifier: GPL-2.0+
>>>>  /*
>>>>   * ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer
>>>>   *
>>>>   * Copyright 2010 Analog Devices Inc.
>>>> - *
>>>> - * Licensed under the GPL-2 or later.  
>>> I see that you too are doing similar cleanup which I did a while ago
>>> https://lkml.org/lkml/2018/2/12/255  
>>
>> Yes, Jonathan suggested me to work on adis16209.
>> Your patches were quite useful for me :)
>>
>>> where I got some update suggestions for the patch series. It would be
>>> great if you could update this patch series consistent with the
>>> reviewers.
>>>
>>> For eg: in this patch you changed 
>>>
>>> +// SPDX-License-Identifier: GPL-2.0+
>>>
>>> and therefore
>>>
>>> MODULE_LICENSE("GPL v2");
>>>
>>> should also be changed to 
>>>
>>> MODULE_LICENSE("GPL"); 
>>>
>>> as explained by	Philippe Ombredanne to me in my patch series.  
>>
> I'm not sure that was exactly what Philippe was suggesting.
> He was making the point that the licensing was inconsistent without
> saying which option should be chosen.
> 
> We will need to seek clarification from Analog Devices
> on what their opinion on this is.
> 
> Lars / Michael, any clarification on the right way to resolve this
> inconsistency?

I can't speak for the intended license for code I wasn't involved in.

But I'd in general if there are conflicting licensing information and you
want to be on the safe side choose the more restrictive license. E.g. GPL2+
is compatible with GPL2, but GPL2 is not compatible with GPL2+. So to be
compatible with both choose GPL2.
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Lars-Peter Clausen Feb. 18, 2018, 12:14 p.m. UTC | #6
On 02/18/2018 01:08 PM, Lars-Peter Clausen wrote:
> On 02/18/2018 01:02 PM, Jonathan Cameron wrote:
>> On Sun, 18 Feb 2018 17:07:57 +0530
>> Shreeya Patel <shreeya.patel23498@gmail.com> wrote:
>>
>>> On Sun, 2018-02-18 at 17:01 +0530, Himanshu Jha wrote:
>>>> Hi Shreeya,
>>>>   
>>> Hi Himanshu,
>>>
>>>> On Sat, Feb 17, 2018 at 09:34:56PM +0530, Shreeya Patel wrote:  
>>>>>
>>>>> Use SPDX identifier format instead of GPLv2. Also rearrange the
>>>>> headers in alphabetical order.
>>>>>
>>>>> Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
>>>>> ---
>>>>>  drivers/staging/iio/accel/adis16209.c | 7 +++----
>>>>>  1 file changed, 3 insertions(+), 4 deletions(-)
>>>>>
>>>>> diff --git a/drivers/staging/iio/accel/adis16209.c
>>>>> b/drivers/staging/iio/accel/adis16209.c
>>>>> index 7fcef9a..e3d9f80 100644
>>>>> --- a/drivers/staging/iio/accel/adis16209.c
>>>>> +++ b/drivers/staging/iio/accel/adis16209.c
>>>>> @@ -1,19 +1,18 @@
>>>>> +// SPDX-License-Identifier: GPL-2.0+
>>>>>  /*
>>>>>   * ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer
>>>>>   *
>>>>>   * Copyright 2010 Analog Devices Inc.
>>>>> - *
>>>>> - * Licensed under the GPL-2 or later.  
>>>> I see that you too are doing similar cleanup which I did a while ago
>>>> https://lkml.org/lkml/2018/2/12/255  
>>>
>>> Yes, Jonathan suggested me to work on adis16209.
>>> Your patches were quite useful for me :)
>>>
>>>> where I got some update suggestions for the patch series. It would be
>>>> great if you could update this patch series consistent with the
>>>> reviewers.
>>>>
>>>> For eg: in this patch you changed 
>>>>
>>>> +// SPDX-License-Identifier: GPL-2.0+
>>>>
>>>> and therefore
>>>>
>>>> MODULE_LICENSE("GPL v2");
>>>>
>>>> should also be changed to 
>>>>
>>>> MODULE_LICENSE("GPL"); 
>>>>
>>>> as explained by	Philippe Ombredanne to me in my patch series.  
>>>
>> I'm not sure that was exactly what Philippe was suggesting.
>> He was making the point that the licensing was inconsistent without
>> saying which option should be chosen.
>>
>> We will need to seek clarification from Analog Devices
>> on what their opinion on this is.
>>
>> Lars / Michael, any clarification on the right way to resolve this
>> inconsistency?
> 
> I can't speak for the intended license for code I wasn't involved in.
> 
> But I'd in general if there are conflicting licensing information and you
> want to be on the safe side choose the more restrictive license. E.g. GPL2+
> is compatible with GPL2, but GPL2 is not compatible with GPL2+. So to be
> compatible with both choose GPL2.

This is not legal advice btw.

I personally would stay away from messing with the licenses of code I do not
own. Not everybody seems to agree yet that a SPDX tag is equivalent to a
explicit licensing statement.

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jonathan Cameron Feb. 18, 2018, 12:51 p.m. UTC | #7
On Sun, 18 Feb 2018 13:14:27 +0100
Lars-Peter Clausen <lars@metafoo.de> wrote:

> On 02/18/2018 01:08 PM, Lars-Peter Clausen wrote:
> > On 02/18/2018 01:02 PM, Jonathan Cameron wrote:  
> >> On Sun, 18 Feb 2018 17:07:57 +0530
> >> Shreeya Patel <shreeya.patel23498@gmail.com> wrote:
> >>  
> >>> On Sun, 2018-02-18 at 17:01 +0530, Himanshu Jha wrote:  
> >>>> Hi Shreeya,
> >>>>     
> >>> Hi Himanshu,
> >>>  
> >>>> On Sat, Feb 17, 2018 at 09:34:56PM +0530, Shreeya Patel wrote:    
> >>>>>
> >>>>> Use SPDX identifier format instead of GPLv2. Also rearrange the
> >>>>> headers in alphabetical order.
> >>>>>
> >>>>> Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
> >>>>> ---
> >>>>>  drivers/staging/iio/accel/adis16209.c | 7 +++----
> >>>>>  1 file changed, 3 insertions(+), 4 deletions(-)
> >>>>>
> >>>>> diff --git a/drivers/staging/iio/accel/adis16209.c
> >>>>> b/drivers/staging/iio/accel/adis16209.c
> >>>>> index 7fcef9a..e3d9f80 100644
> >>>>> --- a/drivers/staging/iio/accel/adis16209.c
> >>>>> +++ b/drivers/staging/iio/accel/adis16209.c
> >>>>> @@ -1,19 +1,18 @@
> >>>>> +// SPDX-License-Identifier: GPL-2.0+
> >>>>>  /*
> >>>>>   * ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer
> >>>>>   *
> >>>>>   * Copyright 2010 Analog Devices Inc.
> >>>>> - *
> >>>>> - * Licensed under the GPL-2 or later.    
> >>>> I see that you too are doing similar cleanup which I did a while ago
> >>>> https://lkml.org/lkml/2018/2/12/255    
> >>>
> >>> Yes, Jonathan suggested me to work on adis16209.
> >>> Your patches were quite useful for me :)
> >>>  
> >>>> where I got some update suggestions for the patch series. It would be
> >>>> great if you could update this patch series consistent with the
> >>>> reviewers.
> >>>>
> >>>> For eg: in this patch you changed 
> >>>>
> >>>> +// SPDX-License-Identifier: GPL-2.0+
> >>>>
> >>>> and therefore
> >>>>
> >>>> MODULE_LICENSE("GPL v2");
> >>>>
> >>>> should also be changed to 
> >>>>
> >>>> MODULE_LICENSE("GPL"); 
> >>>>
> >>>> as explained by	Philippe Ombredanne to me in my patch series.    
> >>>  
> >> I'm not sure that was exactly what Philippe was suggesting.
> >> He was making the point that the licensing was inconsistent without
> >> saying which option should be chosen.
> >>
> >> We will need to seek clarification from Analog Devices
> >> on what their opinion on this is.
> >>
> >> Lars / Michael, any clarification on the right way to resolve this
> >> inconsistency?  
> > 
> > I can't speak for the intended license for code I wasn't involved in.
> > 
> > But I'd in general if there are conflicting licensing information and you
> > want to be on the safe side choose the more restrictive license. E.g. GPL2+
> > is compatible with GPL2, but GPL2 is not compatible with GPL2+. So to be
> > compatible with both choose GPL2.  
> 
> This is not legal advice btw.
> 
> I personally would stay away from messing with the licenses of code I do not
> own. Not everybody seems to agree yet that a SPDX tag is equivalent to a
> explicit licensing statement.
> 
OK, in that case let's not do the spdx conversions for these drivers.
We probably need to fix the inconsistency however between the text and the
module license tag.  Doesn't need to be part of moving it out of staging however.

Jonathan



--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c
index 7fcef9a..e3d9f80 100644
--- a/drivers/staging/iio/accel/adis16209.c
+++ b/drivers/staging/iio/accel/adis16209.c
@@ -1,19 +1,18 @@ 
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer
  *
  * Copyright 2010 Analog Devices Inc.
- *
- * Licensed under the GPL-2 or later.
  */
 
 #include <linux/delay.h>
 #include <linux/device.h>
 #include <linux/kernel.h>
+#include <linux/list.h>
+#include <linux/module.h>
 #include <linux/spi/spi.h>
 #include <linux/slab.h>
 #include <linux/sysfs.h>
-#include <linux/list.h>
-#include <linux/module.h>
 
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>