From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org, sensors@stimpy.netroedge.com
Subject: Re: [PATCH] i2c driver fixes for 2.6.0-test5
Date: Mon, 22 Sep 2003 16:30:26 -0700 [thread overview]
Message-ID: <10642734262057@kroah.com> (raw)
In-Reply-To: <10642734262038@kroah.com>
ChangeSet 1.1315.1.20, 2003/09/22 13:44:13-07:00, greg@kroah.com
[PATCH] I2C: clean up the i2c-elv.c driver a bit
drivers/i2c/busses/i2c-elv.c | 21 +++++++++------------
1 files changed, 9 insertions(+), 12 deletions(-)
diff -Nru a/drivers/i2c/busses/i2c-elv.c b/drivers/i2c/busses/i2c-elv.c
--- a/drivers/i2c/busses/i2c-elv.c Mon Sep 22 16:12:46 2003
+++ b/drivers/i2c/busses/i2c-elv.c Mon Sep 22 16:12:46 2003
@@ -21,8 +21,6 @@
/* With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi> and even
Frodo Looijaard <frodol@dds.nl> */
-/* $Id: i2c-elv.c,v 1.27 2003/01/21 08:08:16 kmalkki Exp $ */
-
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
@@ -36,7 +34,7 @@
#define DEFAULT_BASE 0x378
static int base=0;
-static unsigned char PortData = 0;
+static unsigned char port_data = 0;
/* ----- global defines ----------------------------------------------- */
#define DEB(x) /* should be reasonable open, close &c. */
@@ -57,21 +55,21 @@
static void bit_elv_setscl(void *data, int state)
{
if (state) {
- PortData &= 0xfe;
+ port_data &= 0xfe;
} else {
- PortData |=1;
+ port_data |=1;
}
- outb(PortData, DATA);
+ outb(port_data, DATA);
}
static void bit_elv_setsda(void *data, int state)
{
if (state) {
- PortData &=0xfd;
+ port_data &=0xfd;
} else {
- PortData |=2;
+ port_data |=2;
}
- outb(PortData, DATA);
+ outb(port_data, DATA);
}
static int bit_elv_getscl(void *data)
@@ -103,7 +101,7 @@
goto fail;
}
- PortData = 0;
+ port_data = 0;
bit_elv_setsda((void*)base,1);
bit_elv_setscl((void*)base,1);
return 0;
@@ -129,14 +127,13 @@
static struct i2c_adapter bit_elv_ops = {
.owner = THIS_MODULE,
- .id = I2C_HW_B_ELV,
.algo_data = &bit_elv_data,
.name = "ELV Parallel port adaptor",
};
static int __init i2c_bitelv_init(void)
{
- printk(KERN_INFO "i2c-elv.o: i2c ELV parallel port adapter module version %s (%s)\n", I2C_VERSION, I2C_DATE);
+ printk(KERN_INFO "i2c ELV parallel port adapter driver\n");
if (base==0) {
/* probe some values */
base=DEFAULT_BASE;
next prev parent reply other threads:[~2003-09-22 23:59 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-22 23:28 [BK PATCH] i2c driver fixes for 2.6.0-test5 Greg KH
2003-09-22 23:30 ` [PATCH] " Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH [this message]
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
[not found] <10642734271572@kroah.com>
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30 ` Greg KH
2003-09-23 8:16 ` Christoph Hellwig
2003-09-23 16:19 ` Greg KH
2003-09-23 16:22 ` Christoph Hellwig
2003-09-23 19:04 ` Greg KH
2003-09-23 19:08 ` Christoph Hellwig
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=10642734262057@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sensors@stimpy.netroedge.com \
/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