Re: [PATCH] rtc: constify rtc_class_ops structures

2017-01-10 Thread Alexandre Belloni
On 05/01/2017 at 22:25:05 +0530, Bhumika Goyal wrote : > Declare rtc_class_ops structures as const as they are only passed > as an argument to the function devm_rtc_device_register. This argument > is of type const struct rtc_class_ops *, so rtc_class_ops structures > having this property can be

Re: [PATCH] rtc: constify rtc_class_ops structures

2017-01-10 Thread Alexandre Belloni
On 05/01/2017 at 22:25:05 +0530, Bhumika Goyal wrote : > Declare rtc_class_ops structures as const as they are only passed > as an argument to the function devm_rtc_device_register. This argument > is of type const struct rtc_class_ops *, so rtc_class_ops structures > having this property can be

[PATCH] rtc: constify rtc_class_ops structures

2017-01-05 Thread Bhumika Goyal
Declare rtc_class_ops structures as const as they are only passed as an argument to the function devm_rtc_device_register. This argument is of type const struct rtc_class_ops *, so rtc_class_ops structures having this property can be declared const. Done using Coccinelle: @r1 disable

[PATCH] rtc: constify rtc_class_ops structures

2017-01-05 Thread Bhumika Goyal
Declare rtc_class_ops structures as const as they are only passed as an argument to the function devm_rtc_device_register. This argument is of type const struct rtc_class_ops *, so rtc_class_ops structures having this property can be declared const. Done using Coccinelle: @r1 disable

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-09-02 Thread Alexandre Belloni
On 31/08/2016 at 10:05:25 +0200, Julia Lawall wrote : > Check for rtc_class_ops structures that are only passed to > devm_rtc_device_register, rtc_device_register, > platform_device_register_data, all of which declare the corresponding > parameter as const. Declare rtc_class_ops structures that

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-09-02 Thread Alexandre Belloni
On 31/08/2016 at 10:05:25 +0200, Julia Lawall wrote : > Check for rtc_class_ops structures that are only passed to > devm_rtc_device_register, rtc_device_register, > platform_device_register_data, all of which declare the corresponding > parameter as const. Declare rtc_class_ops structures that

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-09-01 Thread Thierry Reding
On Wed, Aug 31, 2016 at 10:05:25AM +0200, Julia Lawall wrote: > Check for rtc_class_ops structures that are only passed to > devm_rtc_device_register, rtc_device_register, > platform_device_register_data, all of which declare the corresponding > parameter as const. Declare rtc_class_ops

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-09-01 Thread Thierry Reding
On Wed, Aug 31, 2016 at 10:05:25AM +0200, Julia Lawall wrote: > Check for rtc_class_ops structures that are only passed to > devm_rtc_device_register, rtc_device_register, > platform_device_register_data, all of which declare the corresponding > parameter as const. Declare rtc_class_ops

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-09-01 Thread Linus Walleij
On Wed, Aug 31, 2016 at 10:05 AM, Julia Lawall wrote: > Check for rtc_class_ops structures that are only passed to > devm_rtc_device_register, rtc_device_register, > platform_device_register_data, all of which declare the corresponding > parameter as const. Declare

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-09-01 Thread Linus Walleij
On Wed, Aug 31, 2016 at 10:05 AM, Julia Lawall wrote: > Check for rtc_class_ops structures that are only passed to > devm_rtc_device_register, rtc_device_register, > platform_device_register_data, all of which declare the corresponding > parameter as const. Declare rtc_class_ops structures that

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-09-01 Thread Hans Ulli Kroll
Hi Julia On Wed, 31 Aug 2016, Julia Lawall wrote: > Check for rtc_class_ops structures that are only passed to > devm_rtc_device_register, rtc_device_register, > platform_device_register_data, all of which declare the corresponding > parameter as const. Declare rtc_class_ops structures that

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-09-01 Thread Hans Ulli Kroll
Hi Julia On Wed, 31 Aug 2016, Julia Lawall wrote: > Check for rtc_class_ops structures that are only passed to > devm_rtc_device_register, rtc_device_register, > platform_device_register_data, all of which declare the corresponding > parameter as const. Declare rtc_class_ops structures that

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-08-31 Thread Baruch Siach
Hi Julia, On Wed, Aug 31, 2016 at 10:05:25AM +0200, Julia Lawall wrote: > Check for rtc_class_ops structures that are only passed to > devm_rtc_device_register, rtc_device_register, > platform_device_register_data, all of which declare the corresponding > parameter as const. Declare

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-08-31 Thread Baruch Siach
Hi Julia, On Wed, Aug 31, 2016 at 10:05:25AM +0200, Julia Lawall wrote: > Check for rtc_class_ops structures that are only passed to > devm_rtc_device_register, rtc_device_register, > platform_device_register_data, all of which declare the corresponding > parameter as const. Declare

[PATCH] rtc: constify rtc_class_ops structures

2016-08-31 Thread Julia Lawall
Check for rtc_class_ops structures that are only passed to devm_rtc_device_register, rtc_device_register, platform_device_register_data, all of which declare the corresponding parameter as const. Declare rtc_class_ops structures that have these properties as const. The semantic patch that makes

[PATCH] rtc: constify rtc_class_ops structures

2016-08-31 Thread Julia Lawall
Check for rtc_class_ops structures that are only passed to devm_rtc_device_register, rtc_device_register, platform_device_register_data, all of which declare the corresponding parameter as const. Declare rtc_class_ops structures that have these properties as const. The semantic patch that makes