diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-03-30 23:29:02 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-03-30 23:29:02 +0000 |
commit | b9b51ddc029b64b109b6d9130f6e15876cadca20 (patch) | |
tree | c17e75f4e873667b3c44e569406b4e60a8dff082 /linux/drivers/media/video/sn9c102 | |
parent | 91a5392298717a113c102559db0369af7c09a246 (diff) | |
download | mediapointer-dvb-s2-b9b51ddc029b64b109b6d9130f6e15876cadca20.tar.gz mediapointer-dvb-s2-b9b51ddc029b64b109b6d9130f6e15876cadca20.tar.bz2 |
make sn9c102_i2c_try_write() static
From: Adrian Bunk <bunk@kernel.org>
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>
Diffstat (limited to 'linux/drivers/media/video/sn9c102')
-rw-r--r-- | linux/drivers/media/video/sn9c102/sn9c102_core.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/video/sn9c102/sn9c102_sensor.h | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/linux/drivers/media/video/sn9c102/sn9c102_core.c b/linux/drivers/media/video/sn9c102/sn9c102_core.c index 2c5085df7..b1a7e36d2 100644 --- a/linux/drivers/media/video/sn9c102/sn9c102_core.c +++ b/linux/drivers/media/video/sn9c102/sn9c102_core.c @@ -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, diff --git a/linux/drivers/media/video/sn9c102/sn9c102_sensor.h b/linux/drivers/media/video/sn9c102/sn9c102_sensor.h index 0f2ac649d..fac335352 100644 --- a/linux/drivers/media/video/sn9c102/sn9c102_sensor.h +++ b/linux/drivers/media/video/sn9c102/sn9c102_sensor.h @@ -86,9 +86,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); |