Skip to content

Commit

Permalink
V4L/DVB (7480): make sn9c102_i2c_try_write() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent d9aedf1 commit 762250f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions drivers/media/video/sn9c102/sn9c102_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 0 additions & 3 deletions drivers/media/video/sn9c102/sn9c102_sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 762250f

Please sign in to comment.