[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BD79186B4FD85F4B8E60E381CAEE1909020E8C70@mi8nycmail19.Mi8.com>
Date: Tue, 19 Jan 2010 16:53:26 -0500
From: "H Hartley Sweeten" <hartleys@...ionengravers.com>
To: <wim@...ana.be>
Cc: <linux-kernel@...r.kernel.org>
Subject: Re: [RFC] [PATCH] watchdog_info separation and constify
On Tue Jan 19, 2010, Wim Van Sebroeck wrote:
> Hi All,
>
> please comment on following patch.
>
> Kind regards,
> Wim.
>
> commit 88d0b1a9c071d26e7b4831320067c84b04ea04a8
> Author: Wim Van Sebroeck <wim@...xxxxxx>
> Date: Sat Dec 26 18:55:22 2009 +0000
>
> [WATCHDOG] watchdog_info separation and constify
>
> make sure that the watchdog_info struct is seperated from the ioctl code.
> Also make the struct const where possible.
>
> Signed-off-by: Wim Van Sebroeck <wim@...xxxxxx>
[snip]
> diff --git a/drivers/watchdog/ep93xx_wdt.c b/drivers/watchdog/ep93xx_wdt.c
> index cdd55e0..88ed54e 100644
> --- a/drivers/watchdog/ep93xx_wdt.c
> +++ b/drivers/watchdog/ep93xx_wdt.c
> @@ -131,7 +131,7 @@ ep93xx_wdt_write(struct file *file, const char __user *data, size_t len,
> return len;
> }
>
> -static struct watchdog_info ident = {
> +static const struct watchdog_info ident = {
> .options = WDIOF_CARDRESET | WDIOF_MAGICCLOSE,
> .identity = "EP93xx Watchdog",
> };
Before:
$ size ep93xx_wdt.o
text data bss dec hex filename
1613 88 40 1741 6cd ep93xx_wdt.o
After:
$ size ep93xx_wdt.o
text data bss dec hex filename
1653 48 40 1741 6cd ep93xx_wdt.o
Tested-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
Powered by blists - more mailing lists