diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-23 00:40:54 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-23 00:40:54 +0000 |
commit | 529c593ece216e4aaffd36bd940cb94f1fa63129 (patch) | |
tree | 78f1c0b805f5656aa7b0417a043c5346f700a2cf /drivers/i2c/i2c-velleman.c | |
parent | 0bd079751d25808d1972baee5c4eaa1db2227257 (diff) |
Merge with 2.3.43. I did ignore all modifications to the qlogicisp.c
driver due to the Origin A64 hacks.
Diffstat (limited to 'drivers/i2c/i2c-velleman.c')
-rw-r--r-- | drivers/i2c/i2c-velleman.c | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/drivers/i2c/i2c-velleman.c b/drivers/i2c/i2c-velleman.c index 7a3bc3522..95c12a289 100644 --- a/drivers/i2c/i2c-velleman.c +++ b/drivers/i2c/i2c-velleman.c @@ -1,7 +1,7 @@ /* ------------------------------------------------------------------------- */ /* i2c-velleman.c i2c-hw access for Velleman K9000 adapters */ /* ------------------------------------------------------------------------- */ -/* Copyright (C) 1995-96 Simon G. Vogl +/* Copyright (C) 1995-96, 2000 Simon G. Vogl This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,32 +16,18 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* ------------------------------------------------------------------------- +/* ------------------------------------------------------------------------- */ -/* $Id: i2c-velleman.c,v 1.14 1999/12/21 23:45:58 frodo Exp $ */ +/* $Id: i2c-velleman.c,v 1.19 2000/01/24 02:06:33 mds Exp $ */ #include <linux/kernel.h> #include <linux/ioport.h> #include <linux/module.h> -#if LINUX_VERSION_CODE >= 0x020135 #include <linux/init.h> -#else -#define __init -#endif #include <linux/string.h> /* for 2.0 kernels to get NULL */ #include <asm/errno.h> /* for 2.0 kernels to get ENODEV */ #include <asm/io.h> -/* 2.0.0 kernel compatibility */ -#if LINUX_VERSION_CODE < 0x020100 -#define MODULE_AUTHOR(noone) -#define MODULE_DESCRIPTION(none) -#define MODULE_PARM(no,param) -#define MODULE_PARM_DESC(no,description) -#define EXPORT_SYMBOL(noexport) -#define EXPORT_NO_SYMBOLS -#endif - #include <linux/i2c.h> #include <linux/i2c-algo-bit.h> @@ -55,7 +41,7 @@ #define I2C_SCL 0x08 /* ctrl bit 3 (inv) */ #define I2C_SDAIN 0x10 /* stat bit 4 */ -#define I2C_SCLIN 0x08 /* ctrl bit 3 (inv) (reads own output) */ +#define I2C_SCLIN 0x08 /* ctrl bit 3 (inv)(reads own output)*/ #define I2C_DMASK 0xfd #define I2C_CMASK 0xf7 @@ -105,7 +91,8 @@ static int bit_velle_getsda(void *data) static int bit_velle_init(void) { if (check_region(base,(base == 0x3bc)? 3 : 8) < 0 ) { - DEBE(printk("i2c-velleman.o: Port %#x already in use.\n", base)); + DEBE(printk("i2c-velleman.o: Port %#x already in use.\n", + base)); return -ENODEV; } else { request_region(base, (base == 0x3bc)? 3 : 8, @@ -173,7 +160,7 @@ static struct i2c_adapter bit_velle_ops = { int __init i2c_bitvelle_init(void) { - printk("i2c-velleman.o: i2c Velleman K8000 adapter module\n"); + printk("i2c-velleman.o: i2c Velleman K8000 adapter module\n"); if (base==0) { /* probe some values */ base=DEFAULT_BASE; |