Re: [PATCH] watchdog: coh901327_wdt: constify watchdog_ops structure

2017-08-02 Thread Linus Walleij
On Sat, Jul 8, 2017 at 2:33 AM, Gustavo A. R. Silva wrote: > Check for watchdog_ops structures that are only stored in the ops field of > a watchdog_device structure. This field is declared const, so watchdog_ops > structures that have this property can be declared as

Re: [PATCH] watchdog: coh901327_wdt: constify watchdog_ops structure

2017-08-02 Thread Linus Walleij
On Sat, Jul 8, 2017 at 2:33 AM, Gustavo A. R. Silva wrote: > Check for watchdog_ops structures that are only stored in the ops field of > a watchdog_device structure. This field is declared const, so watchdog_ops > structures that have this property can be declared as const also. > > This issue

Re: [PATCH] watchdog: coh901327_wdt: constify watchdog_ops structure

2017-07-16 Thread Gustavo A. R. Silva
On 07/07/2017 08:45 PM, Guenter Roeck wrote: On 07/07/2017 05:33 PM, Gustavo A. R. Silva wrote: Check for watchdog_ops structures that are only stored in the ops field of a watchdog_device structure. This field is declared const, so watchdog_ops structures that have this property can be

Re: [PATCH] watchdog: coh901327_wdt: constify watchdog_ops structure

2017-07-16 Thread Gustavo A. R. Silva
On 07/07/2017 08:45 PM, Guenter Roeck wrote: On 07/07/2017 05:33 PM, Gustavo A. R. Silva wrote: Check for watchdog_ops structures that are only stored in the ops field of a watchdog_device structure. This field is declared const, so watchdog_ops structures that have this property can be

Re: [PATCH] watchdog: coh901327_wdt: constify watchdog_ops structure

2017-07-07 Thread Guenter Roeck
On 07/07/2017 05:33 PM, Gustavo A. R. Silva wrote: Check for watchdog_ops structures that are only stored in the ops field of a watchdog_device structure. This field is declared const, so watchdog_ops structures that have this property can be declared as const also. This issue was detected

Re: [PATCH] watchdog: coh901327_wdt: constify watchdog_ops structure

2017-07-07 Thread Guenter Roeck
On 07/07/2017 05:33 PM, Gustavo A. R. Silva wrote: Check for watchdog_ops structures that are only stored in the ops field of a watchdog_device structure. This field is declared const, so watchdog_ops structures that have this property can be declared as const also. This issue was detected

[PATCH] watchdog: coh901327_wdt: constify watchdog_ops structure

2017-07-07 Thread Gustavo A. R. Silva
Check for watchdog_ops structures that are only stored in the ops field of a watchdog_device structure. This field is declared const, so watchdog_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r

[PATCH] watchdog: coh901327_wdt: constify watchdog_ops structure

2017-07-07 Thread Gustavo A. R. Silva
Check for watchdog_ops structures that are only stored in the ops field of a watchdog_device structure. This field is declared const, so watchdog_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r