Re: [RFC] [PATCH] watchdog_info separation and constify

2010-01-19 Thread Mark Brown
On Tue, Jan 19, 2010 at 01:42:31PM -0800, Joe Perches wrote: > Maybe a standard #define WATCHDOG_NAME > .identity = WATCHGOD_NAME I don't really see that the indrection via the #define would buy us anything? ___ Linuxppc-dev mailing list Linuxppc-dev@

Re: [RFC] [PATCH] watchdog_info separation and constify

2010-01-19 Thread Joe Perches
On Tue, 2010-01-19 at 22:16 +, Mark Brown wrote: > On Tue, Jan 19, 2010 at 01:42:31PM -0800, Joe Perches wrote: > > Maybe a standard #define WATCHDOG_NAME > > .identity = WATCHGOD_NAME > > I don't really see that the indrection via the #define would buy us > anything? Maybe not, just a sugge

Re: [RFC] [PATCH] watchdog_info separation and constify

2010-01-19 Thread Wim Van Sebroeck
Hi Alan, > > please comment on following patch. > > Why move them out - why not just make them const ? There's 2 options: 1) we only make them const now. And we move them out later when we do the conversion to the generic watchdog api (which means that we will rip out the code for the open, re

Re: [RFC] [PATCH] watchdog_info separation and constify

2010-01-19 Thread Alan Cox
On Tue, 19 Jan 2010 22:17:59 +0100 Wim Van Sebroeck wrote: > Hi All, > > please comment on following patch. Why move them out - why not just make them const ? ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinf

Re: [RFC] [PATCH] watchdog_info separation and constify

2010-01-19 Thread Joe Perches
On Tue, 2010-01-19 at 22:17 +0100, Wim Van Sebroeck wrote: > -static struct watchdog_info at32_wdt_info = { > +static const struct watchdog_info at32_wdt_info = { It'd be good to use a consistent structure name: static const struct watchdog_info ident = { etc... } $ grep -Poh "struct\s*w

Re: [RFC] [PATCH] watchdog_info separation and constify

2010-01-19 Thread Mike Frysinger
On Tue, Jan 19, 2010 at 16:42, Joe Perches wrote: > On Tue, 2010-01-19 at 22:17 +0100, Wim Van Sebroeck wrote: >> -static struct watchdog_info at32_wdt_info = { >> +static const struct watchdog_info at32_wdt_info = { > > It'd be good to use a consistent structure name: > > static const struct watch

[RFC] [PATCH] watchdog_info separation and constify

2010-01-19 Thread Wim Van Sebroeck
Hi All, please comment on following patch. Kind regards, Wim. commit 88d0b1a9c071d26e7b4831320067c84b04ea04a8 Author: Wim Van Sebroeck Date: Sat Dec 26 18:55:22 2009 + [WATCHDOG] watchdog_info separation and constify make sure that the watchdog_info struct is seperated from