aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-11-05 12:07:26 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:02:05 -0500
commitf760d618ab385e1c4060f1bfebc335971a5b79f4 (patch)
treeb5dcbff196433fe5af173e2706be31fcc121bd86 /drivers/media
parenta2fbaa519befdb3db2485116518f3af55be604e6 (diff)
V4L/DVB (6577): et61x251/: make 5 functions static
This patch makes the following needlessly global functions in et61x251_core.c static: - et61x251_read_reg() - et61x251_i2c_try_read() - et61x251_i2c_try_write() - et61x251_i2c_read() - et61x251_i2c_write() Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/et61x251/et61x251_core.c20
-rw-r--r--drivers/media/video/et61x251/et61x251_sensor.h8
2 files changed, 10 insertions, 18 deletions
diff --git a/drivers/media/video/et61x251/et61x251_core.c b/drivers/media/video/et61x251/et61x251_core.c
index d19d73b81ede..38d2ad0aadef 100644
--- a/drivers/media/video/et61x251/et61x251_core.c
+++ b/drivers/media/video/et61x251/et61x251_core.c
@@ -227,7 +227,7 @@ int et61x251_write_reg(struct et61x251_device* cam, u8 value, u16 index)
227} 227}
228 228
229 229
230int et61x251_read_reg(struct et61x251_device* cam, u16 index) 230static int et61x251_read_reg(struct et61x251_device* cam, u16 index)
231{ 231{
232 struct usb_device* udev = cam->usbdev; 232 struct usb_device* udev = cam->usbdev;
233 u8* buff = cam->control_buffer; 233 u8* buff = cam->control_buffer;
@@ -268,9 +268,9 @@ et61x251_i2c_wait(struct et61x251_device* cam,
268} 268}
269 269
270 270
271int 271static int et61x251_i2c_try_read(struct et61x251_device* cam,
272et61x251_i2c_try_read(struct et61x251_device* cam, 272 const struct et61x251_sensor* sensor,
273 const struct et61x251_sensor* sensor, u8 address) 273 u8 address)
274{ 274{
275 struct usb_device* udev = cam->usbdev; 275 struct usb_device* udev = cam->usbdev;
276 u8* data = cam->control_buffer; 276 u8* data = cam->control_buffer;
@@ -301,10 +301,9 @@ et61x251_i2c_try_read(struct et61x251_device* cam,
301} 301}
302 302
303 303
304int 304static int et61x251_i2c_try_write(struct et61x251_device* cam,
305et61x251_i2c_try_write(struct et61x251_device* cam, 305 const struct et61x251_sensor* sensor,
306 const struct et61x251_sensor* sensor, u8 address, 306 u8 address, u8 value)
307 u8 value)
308{ 307{
309 struct usb_device* udev = cam->usbdev; 308 struct usb_device* udev = cam->usbdev;
310 u8* data = cam->control_buffer; 309 u8* data = cam->control_buffer;
@@ -387,13 +386,14 @@ et61x251_i2c_raw_write(struct et61x251_device* cam, u8 n, u8 data1, u8 data2,
387} 386}
388 387
389 388
390int et61x251_i2c_read(struct et61x251_device* cam, u8 address) 389static int et61x251_i2c_read(struct et61x251_device* cam, u8 address)
391{ 390{
392 return et61x251_i2c_try_read(cam, &cam->sensor, address); 391 return et61x251_i2c_try_read(cam, &cam->sensor, address);
393} 392}
394 393
395 394
396int et61x251_i2c_write(struct et61x251_device* cam, u8 address, u8 value) 395static int et61x251_i2c_write(struct et61x251_device* cam,
396 u8 address, u8 value)
397{ 397{
398 return et61x251_i2c_try_write(cam, &cam->sensor, address, value); 398 return et61x251_i2c_try_write(cam, &cam->sensor, address, value);
399} 399}
diff --git a/drivers/media/video/et61x251/et61x251_sensor.h b/drivers/media/video/et61x251/et61x251_sensor.h
index e14586330623..71a03148cb09 100644
--- a/drivers/media/video/et61x251/et61x251_sensor.h
+++ b/drivers/media/video/et61x251/et61x251_sensor.h
@@ -52,14 +52,6 @@ et61x251_attach_sensor(struct et61x251_device* cam,
52/*****************************************************************************/ 52/*****************************************************************************/
53 53
54extern int et61x251_write_reg(struct et61x251_device*, u8 value, u16 index); 54extern int et61x251_write_reg(struct et61x251_device*, u8 value, u16 index);
55extern int et61x251_read_reg(struct et61x251_device*, u16 index);
56extern int et61x251_i2c_write(struct et61x251_device*, u8 address, u8 value);
57extern int et61x251_i2c_read(struct et61x251_device*, u8 address);
58extern int et61x251_i2c_try_write(struct et61x251_device*,
59 const struct et61x251_sensor*, u8 address,
60 u8 value);
61extern int et61x251_i2c_try_read(struct et61x251_device*,
62 const struct et61x251_sensor*, u8 address);
63extern int et61x251_i2c_raw_write(struct et61x251_device*, u8 n, u8 data1, 55extern int et61x251_i2c_raw_write(struct et61x251_device*, u8 n, u8 data1,
64 u8 data2, u8 data3, u8 data4, u8 data5, 56 u8 data2, u8 data3, u8 data4, u8 data5,
65 u8 data6, u8 data7, u8 data8, u8 address); 57 u8 data6, u8 data7, u8 data8, u8 address);