Commit 60507095 authored by Jean Delvare's avatar Jean Delvare Committed by Greg Kroah-Hartman
Browse files

[PATCH] i2c: Discard explicit static initializations to 0



Kill explicit static initializations to 0 in 10 i2c drivers.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>

 drivers/i2c/algos/i2c-algo-pca.c    |    2 +-
 drivers/i2c/algos/i2c-algo-sibyte.c |    2 +-
 drivers/i2c/busses/i2c-ali15x3.c    |    4 ++--
 drivers/i2c/busses/i2c-amd756.c     |    2 +-
 drivers/i2c/busses/i2c-iop3xx.c     |    2 +-
 drivers/i2c/busses/i2c-piix4.c      |    8 ++++----
 drivers/i2c/busses/i2c-sis5595.c    |    4 ++--
 drivers/i2c/busses/i2c-sis630.c     |    2 +-
 drivers/i2c/busses/i2c-sis96x.c     |    2 +-
 drivers/i2c/busses/i2c-via.c        |    2 +-
 10 files changed, 15 insertions(+), 15 deletions(-)
parent b918ecd2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@
#define DEB2(fmt, args...) do { if (i2c_debug>=2) printk(fmt, ## args); } while(0)
#define DEB3(fmt, args...) do { if (i2c_debug>=3) printk(fmt, ## args); } while(0)

static int i2c_debug=0;
static int i2c_debug;

#define pca_outw(adap, reg, val) adap->write_byte(adap, reg, val)
#define pca_inw(adap, reg) adap->read_byte(adap, reg)
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@

/* module parameters:
 */
static int bit_scan=0;	/* have a look at what's hanging 'round		*/
static int bit_scan;	/* have a look at what's hanging 'round		*/


static int smbus_xfer(struct i2c_adapter *i2c_adap, u16 addr, 
+2 −2
Original line number Diff line number Diff line
@@ -125,12 +125,12 @@

/* If force_addr is set to anything different from 0, we forcibly enable
   the device at the given address. */
static u16 force_addr = 0;
static u16 force_addr;
module_param(force_addr, ushort, 0);
MODULE_PARM_DESC(force_addr,
		 "Initialize the base address of the i2c controller");

static unsigned short ali15x3_smba = 0;
static unsigned short ali15x3_smba;

static int ali15x3_setup(struct pci_dev *ALI15X3_dev)
{
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@
#define AMD756_BLOCK_DATA	0x05


static unsigned short amd756_ioport = 0;
static unsigned short amd756_ioport;

/* 
  SMBUS event = I/O 28-29 bit 11
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@
#include "i2c-iop3xx.h"

/* global unit counter */
static int i2c_id = 0;
static int i2c_id;

static inline unsigned char 
iic_cook_addr(struct i2c_msg *msg) 
Loading