diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-03-30 22:29:02 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:57 -0400 |
commit | 762250f884cb927c7f1da4e24052ec43e000d53f (patch) | |
tree | c9b2f073f101a7c808982277cb5ee10fe991cf56 /drivers/media/video/sn9c102 | |
parent | d9aedf1fe88c04500fec269557a968e3320dd4b8 (diff) |
V4L/DVB (7480): make sn9c102_i2c_try_write() static
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 'drivers/media/video/sn9c102')
-rw-r--r-- | drivers/media/video/sn9c102/sn9c102_core.c | 6 | ||||
-rw-r--r-- | drivers/media/video/sn9c102/sn9c102_sensor.h | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/drivers/media/video/sn9c102/sn9c102_core.c b/drivers/media/video/sn9c102/sn9c102_core.c index 898ae5f578c..5748b1e1a12 100644 --- a/drivers/media/video/sn9c102/sn9c102_core.c +++ b/drivers/media/video/sn9c102/sn9c102_core.c | |||
@@ -464,9 +464,9 @@ sn9c102_i2c_try_read(struct sn9c102_device* cam, | |||
464 | } | 464 | } |
465 | 465 | ||
466 | 466 | ||
467 | int | 467 | static int sn9c102_i2c_try_write(struct sn9c102_device* cam, |
468 | sn9c102_i2c_try_write(struct sn9c102_device* cam, | 468 | const struct sn9c102_sensor* sensor, |
469 | const struct sn9c102_sensor* sensor, u8 address, u8 value) | 469 | u8 address, u8 value) |
470 | { | 470 | { |
471 | return sn9c102_i2c_try_raw_write(cam, sensor, 3, | 471 | return sn9c102_i2c_try_raw_write(cam, sensor, 3, |
472 | sensor->i2c_slave_id, address, | 472 | sensor->i2c_slave_id, address, |
diff --git a/drivers/media/video/sn9c102/sn9c102_sensor.h b/drivers/media/video/sn9c102/sn9c102_sensor.h index 2dc7c686948..4af7382da5c 100644 --- a/drivers/media/video/sn9c102/sn9c102_sensor.h +++ b/drivers/media/video/sn9c102/sn9c102_sensor.h | |||
@@ -85,9 +85,6 @@ sn9c102_attach_sensor(struct sn9c102_device* cam, | |||
85 | */ | 85 | */ |
86 | 86 | ||
87 | /* The "try" I2C I/O versions are used when probing the sensor */ | 87 | /* The "try" I2C I/O versions are used when probing the sensor */ |
88 | extern int sn9c102_i2c_try_write(struct sn9c102_device*, | ||
89 | const struct sn9c102_sensor*, u8 address, | ||
90 | u8 value); | ||
91 | extern int sn9c102_i2c_try_read(struct sn9c102_device*, | 88 | extern int sn9c102_i2c_try_read(struct sn9c102_device*, |
92 | const struct sn9c102_sensor*, u8 address); | 89 | const struct sn9c102_sensor*, u8 address); |
93 | 90 | ||