public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Fernando Fuganti <fuganti@netbank.com.br>
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] watchdog/machzwd.c: remove unused functions
Date: Fri, 29 Oct 2004 01:31:34 +0200	[thread overview]
Message-ID: <20041028233134.GO3207@stusta.de> (raw)

-----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(-)


Signed-off-by: Adrian Bunk <bunk@stusta.de>

- --- 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 <fuganti@conectiva.com.br>");
 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-----

             reply	other threads:[~2004-10-28 23:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-28 23:31 Adrian Bunk [this message]
2004-10-29  0:30 ` [2.6 patch] watchdog/machzwd.c: remove unused functions Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041028233134.GO3207@stusta.de \
    --to=bunk@stusta.de \
    --cc=fuganti@netbank.com.br \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox