]> err.no Git - linux-2.6/commitdiff
V4L/DVB (7480): make sn9c102_i2c_try_write() static
authorAdrian Bunk <bunk@kernel.org>
Mon, 31 Mar 2008 02:29:02 +0000 (23:29 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:57 +0000 (14:07 -0300)
This patch makes the needlessly global sn9c102_i2c_try_write() static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
CC: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/sn9c102/sn9c102_core.c
drivers/media/video/sn9c102/sn9c102_sensor.h

index 898ae5f578cbf3f9d23f52c4c385a0864627a571..5748b1e1a128aacdff1abfbdc756d1c6048963a3 100644 (file)
@@ -464,9 +464,9 @@ sn9c102_i2c_try_read(struct sn9c102_device* cam,
 }
 
 
-int
-sn9c102_i2c_try_write(struct sn9c102_device* cam,
-                     const struct sn9c102_sensor* sensor, u8 address, u8 value)
+static int sn9c102_i2c_try_write(struct sn9c102_device* cam,
+                                const struct sn9c102_sensor* sensor,
+                                u8 address, u8 value)
 {
        return sn9c102_i2c_try_raw_write(cam, sensor, 3,
                                         sensor->i2c_slave_id, address,
index 2dc7c68694840cb006cd99a39c60d54e989a8e51..4af7382da5c523d93ab61dcb57868ffbb7098daf 100644 (file)
@@ -85,9 +85,6 @@ sn9c102_attach_sensor(struct sn9c102_device* cam,
 */
 
 /* The "try" I2C I/O versions are used when probing the sensor */
-extern int sn9c102_i2c_try_write(struct sn9c102_device*,
-                                const struct sn9c102_sensor*, u8 address,
-                                u8 value);
 extern int sn9c102_i2c_try_read(struct sn9c102_device*,
                                const struct sn9c102_sensor*, u8 address);