Skip to contentSkip to conversation

watchdog/machzwd.c: remove unused functions

PATCH New Adrian Bunk 1 participant 2 messages Oct 28, 2004 – Oct 29, 2004 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog/machzwd.c: remove unused functions

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The patch below removes unused functions from
drivers/char/watchdog/machzwd.c

diffstat output:

 drivers/char/watchdog/machzwd.c |   29 -----------------------------
 1 files changed, 29 deletions(-)

- --- linux-2.6.10-rc1-mm1-full/drivers/char/watchdog/machzwd.c.old 2004-10-28 22:57:31.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/drivers/char/watchdog/machzwd.c 2004-10-28 23:56:59.000000000 +0200
@@ -88,12 +88,6 @@
return inw(DATA_W);
}

- -static unsigned short zf_readb(unsigned char port)
- -{
- - outb(port, INDEX);
- - return inb(DATA_B);
- -}
- -

MODULE_AUTHOR("Fernando Fuganti <[email protected]>"); MODULE_DESCRIPTION("MachZ ZF-Logic Watchdog driver");
@@ -155,13 +149,6 @@
#endif

- -/* STATUS register functions */
- -
- -static inline unsigned char zf_get_status(void)
- -{
- - return zf_readb(STATUS);
- -}
- -
static inline void zf_set_status(unsigned char new) {
zf_writeb(STATUS, new);
@@ -183,22 +170,6 @@

/* WD#? counter functions */
/*
- - * Just get current counter value
- - */
- -
- -static inline unsigned short zf_get_timer(unsigned char n)
- -{
- - switch(n){
- - case WD1:
- - return zf_readw(COUNTER_1);
- - case WD2:
- - return zf_readb(COUNTER_2);
- - default:
- - return 0;
- - }
- -}
- -
- -/*
* Just set counter value
*/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBgYFWmfzqmE8StAARAmlSAKDA7jm7qYoR+0t2dAqockIIhOQrwQCfVfhB cCmEowuQG3448BONZ8bkd08=
=hf60
-----END PGP SIGNATURE-----

#1 lore raw

PATCH 1/1 watchdog/machzwd.c: remove unused functions

[ this time without the problems due to a digital signature... ]

The patch below removes unused functions from
drivers/char/watchdog/machzwd.c

diffstat output:

 drivers/char/watchdog/machzwd.c |   29 -----------------------------
 1 files changed, 29 deletions(-)
drivers/char/watchdog/machzwd.c renamed from drivers/char/watchdog/machzwd.c.old +0 -29
@@ -88,12 +88,6 @@
 	return inw(DATA_W);
 }
 
-static unsigned short zf_readb(unsigned char port)
-{
-	outb(port, INDEX);
-	return inb(DATA_B);
-}
-
 
 MODULE_AUTHOR("Fernando Fuganti <[email protected]>");
 MODULE_DESCRIPTION("MachZ ZF-Logic Watchdog driver");
@@ -155,13 +149,6 @@
 #endif
 
 
-/* STATUS register functions */
-
-static inline unsigned char zf_get_status(void)
-{
-	return zf_readb(STATUS);
-}
-
 static inline void zf_set_status(unsigned char new)
 {
 	zf_writeb(STATUS, new);
@@ -183,22 +170,6 @@
 
 /* WD#? counter functions */
 /*
- *	Just get current counter value
- */
-
-static inline unsigned short zf_get_timer(unsigned char n)
-{
-	switch(n){
-		case WD1:
-			return zf_readw(COUNTER_1);
-		case WD2:
-			return zf_readb(COUNTER_2);
-		default:
-			return 0;
-	}
-}
-
-/*
  *	Just set counter value
  */