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

2017-07-16 Thread Gustavo A. R. Silva
On 07/07/2017 08:44 PM, Guenter Roeck wrote: On 07/07/2017 05:18 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 decl

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

2017-07-07 Thread Guenter Roeck
On 07/07/2017 05:18 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 using

[PATCH] watchdog: ts72xx_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 dis