2002-11-18 12:55:22

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: [PATCH] i2c: fix up header cleanups: add include <linux/interrupt.h>

Linus,

Please pull from:

master.kernel.org:/home/acme/BK/includes-2.5

Now there is four outstanding changesets.

- Arnaldo

You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


[email protected], 2002-11-18 10:42:11-02:00, [email protected]
o i2c: fix up header cleanups: add include <linux/interrupt.h>

Also some cleanups wrt struct member initialization style.


i2c-elektor.c | 46 +++++++++++++++++++++++++---------------------
1 files changed, 25 insertions(+), 21 deletions(-)


diff -Nru a/drivers/i2c/i2c-elektor.c b/drivers/i2c/i2c-elektor.c
--- a/drivers/i2c/i2c-elektor.c Mon Nov 18 10:56:50 2002
+++ b/drivers/i2c/i2c-elektor.c Mon Nov 18 10:56:50 2002
@@ -32,23 +32,27 @@
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/init.h>
+#include <linux/interrupt.h>
#include <linux/pci.h>
-#include <asm/irq.h>
-#include <asm/io.h>
+#include <linux/wait.h>

#include <linux/i2c.h>
#include <linux/i2c-algo-pcf.h>
#include <linux/i2c-elektor.h>
+
+#include <asm/io.h>
+#include <asm/irq.h>
+
#include "i2c-pcf8584.h"

#define DEFAULT_BASE 0x330

-static int base = 0;
-static int irq = 0;
+static int base;
+static int irq;
static int clock = 0x1c;
static int own = 0x55;
-static int mmapped = 0;
-static int i2c_debug = 0;
+static int mmapped;
+static int i2c_debug;

/* vdovikin: removed static struct i2c_pcf_isa gpi; code -
this module in real supports only one device, due to missing arguments
@@ -199,24 +203,24 @@
* This is only done when more than one hardware adapter is supported.
*/
static struct i2c_algo_pcf_data pcf_isa_data = {
- NULL,
- pcf_isa_setbyte,
- pcf_isa_getbyte,
- pcf_isa_getown,
- pcf_isa_getclock,
- pcf_isa_waitforpin,
- 10, 10, 100, /* waits, timeout */
+ .setpcf = pcf_isa_setbyte,
+ .getpcf = pcf_isa_getbyte,
+ .getown = pcf_isa_getown,
+ .getclock = pcf_isa_getclock,
+ .waitforpin = pcf_isa_waitforpin,
+ .udelay = 10,
+ .mdelay = 10,
+ .timeout = 100,
};

static struct i2c_adapter pcf_isa_ops = {
- "PCF8584 ISA adapter",
- I2C_HW_P_ELEK,
- NULL,
- &pcf_isa_data,
- pcf_isa_inc_use,
- pcf_isa_dec_use,
- pcf_isa_reg,
- pcf_isa_unreg,
+ .name = "PCF8584 ISA adapter",
+ .id = I2C_HW_P_ELEK,
+ .algo_data = &pcf_isa_data,
+ .inc_use = pcf_isa_inc_use,
+ .dec_use = pcf_isa_dec_use,
+ .client_register = pcf_isa_reg,
+ .client_unregister = pcf_isa_unreg,
};

int __init i2c_pcfisa_init(void)

===================================================================


This BitKeeper patch contains the following changesets:
1.893
## Wrapped with gzip_uu ##


begin 664 bkpatch15294
M'XL(`)+CV#T``]U576_;1A!\YOV*10SDI1%U>_P0Q41!',MM!`>HX"#H2P#B
M=#Q+!_.KY-&."_[X+FG%EA0E;I,^E:($869V>;LS`$_@8Z/KV)$JU^P$WI6-
MC1U5%EI9<R-=5>;NJB;BLBR)&&_*7(_?7HQ-H;(VU<U(N`$C>BFMVL"-KIO8
M0==[0.Q=I6/G\ORWC^]/+QF;S>!L(XNU_J`MS&;,EO6-S-+FC;2;K"Q<6\NB
MR;4='MP]2#O!N:!/@!./!V&'(?<GG<(44?JH4R[\*/19/\.;P[,?=$'$"(6/
MG'?HA8'/YH!N-/6`BS'B&"-`'OLB1AQQ$7,.1YO"+P@CSM["?SO`&5-0@A$J
MABOS&=H*-EJFN@:5:5FT51.#3%/8+A]>9:9H/Y,75M=U6UEW\YH:T'V:-24T
M9-5#(=S6%AI;M\I"KO,5]32%L49FYB]I35D0>9=IEUT`^IZ8LN6C46ST+R_&
MN.3L]1/+26O3YV5,X_;?D<[T-56X:F=9/L>H"\5D*KIIRO4D]<B^T!>K2!XW
MYHFN6_<%CSI_POUH2.0W2YY.Z$_.0(F=4A2IMUV9?](PP@`C$2%V8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