Re: [PATCH] watchdog: constify watchdog_ops and watchdog_info structures

2017-08-14 Thread Guenter Roeck
On Thu, Aug 03, 2017 at 11:21:31PM +0200, Julia Lawall wrote: > These watchdog_ops and watchdog_info structures are only stored > in the ops and info fields of a watchdog_device structure, > respectively, which are const. Thus make the watchdog_ops and > watchdog_info structures const as well. >

Re: [PATCH] watchdog: constify watchdog_ops and watchdog_info structures

2017-08-07 Thread Linus Walleij
On Thu, Aug 3, 2017 at 11:21 PM, Julia Lawall wrote: > These watchdog_ops and watchdog_info structures are only stored > in the ops and info fields of a watchdog_device structure, > respectively, which are const. Thus make the watchdog_ops and > watchdog_info structures const as well. > > Done w

[PATCH] watchdog: constify watchdog_ops and watchdog_info structures

2017-08-03 Thread Julia Lawall
These watchdog_ops and watchdog_info structures are only stored in the ops and info fields of a watchdog_device structure, respectively, which are const. Thus make the watchdog_ops and watchdog_info structures const as well. Done with the help of Coccinelle. The rules for the watchdog_ops case a