Skip to contentSkip to conversation

cbus-retu-wdt: Constify watchdog_info structure

PATCH In review Michael Buesch 2 participants 2 messages Mar 4, 2011 – Mar 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cbus-retu-wdt: Constify watchdog_info structure

Nobody modifies the watchdog_info structure, so make it const.

---

drivers/cbus/retu-wdt.c +1 -1
Index: linux-2.6.38-rc6/drivers/cbus/retu-wdt.c
===================================================================
@@ -149,7 +149,7 @@ static long retu_wdt_ioctl(struct file *
 	struct retu_wdt_dev *wdev = container_of(mdev, struct retu_wdt_dev, miscdev);
 	int new_margin;
 
-	static struct watchdog_info ident = {
+	static const struct watchdog_info ident = {
 		.identity = "Retu Watchdog",
 		.options = WDIOF_SETTIMEOUT,
 		.firmware_version = 0,
Signature · 1 line
Greetings, Michael.