]> git.hungrycats.org Git - linux/commitdiff
[PATCH] drivers_media_video_saa7111.c cleanup
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Apr 2003 11:54:12 +0000 (03:54 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Tue, 1 Apr 2003 11:54:12 +0000 (03:54 -0800)
From:  Frank Davis <fdavis@si.rr.com>

  This patch makes us of a new predefined macro, instead of having the code
  directly in the driver.

drivers/media/video/saa7111.c

index d39eb8c9015bf5d510e551b1c060bcb00dddbcf5..3ac54bdcfb43aaf3f69ff7253f1f7e44d3a52eba 100644 (file)
@@ -63,23 +63,9 @@ struct saa7111 {
 
 static unsigned short normal_i2c[] = { 34>>1, I2C_CLIENT_END };        
 static unsigned short normal_i2c_range[] = { I2C_CLIENT_END }; 
-static unsigned short probe[2] = { I2C_CLIENT_END, I2C_CLIENT_END };
-static unsigned short probe_range[2] = { I2C_CLIENT_END, I2C_CLIENT_END };
-static unsigned short ignore[2] = { I2C_CLIENT_END, I2C_CLIENT_END };
-static unsigned short ignore_range[2] = { I2C_CLIENT_END, I2C_CLIENT_END };
-static unsigned short force[2] = { I2C_CLIENT_END , I2C_CLIENT_END };  
-
-static struct i2c_client_address_data addr_data = {
-       .normal_i2c             = normal_i2c,
-       .normal_i2c_range       = normal_i2c_range,
-       .probe                  = probe, 
-       .probe_range            = probe_range,
-       .ignore                 = ignore, 
-       .ignore_range           = ignore_range,
-       .force                  = force
-};
 
-static struct i2c_client client_template;
+I2C_CLIENT_INSMOD;
+
 /* ----------------------------------------------------------------------- */
 
 static int saa7111_attach(struct i2c_adapter *adap, int addr, unsigned short flags, int kind)