diff options
author | Adrian Bunk <bunk@kernel.org> | 2007-11-05 12:07:26 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:05 -0500 |
commit | f760d618ab385e1c4060f1bfebc335971a5b79f4 (patch) | |
tree | b5dcbff196433fe5af173e2706be31fcc121bd86 /drivers/media | |
parent | a2fbaa519befdb3db2485116518f3af55be604e6 (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.c | 20 | ||||
-rw-r--r-- | drivers/media/video/et61x251/et61x251_sensor.h | 8 |
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 | ||
230 | int et61x251_read_reg(struct et61x251_device* cam, u16 index) | 230 | static 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 | ||
271 | int | 271 | static int et61x251_i2c_try_read(struct et61x251_device* cam, |
272 | et61x251_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 | ||
304 | int | 304 | static int et61x251_i2c_try_write(struct et61x251_device* cam, |
305 | et61x251_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 | ||
390 | int et61x251_i2c_read(struct et61x251_device* cam, u8 address) | 389 | static 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 | ||
396 | int et61x251_i2c_write(struct et61x251_device* cam, u8 address, u8 value) | 395 | static 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 | ||
54 | extern int et61x251_write_reg(struct et61x251_device*, u8 value, u16 index); | 54 | extern int et61x251_write_reg(struct et61x251_device*, u8 value, u16 index); |
55 | extern int et61x251_read_reg(struct et61x251_device*, u16 index); | ||
56 | extern int et61x251_i2c_write(struct et61x251_device*, u8 address, u8 value); | ||
57 | extern int et61x251_i2c_read(struct et61x251_device*, u8 address); | ||
58 | extern int et61x251_i2c_try_write(struct et61x251_device*, | ||
59 | const struct et61x251_sensor*, u8 address, | ||
60 | u8 value); | ||
61 | extern int et61x251_i2c_try_read(struct et61x251_device*, | ||
62 | const struct et61x251_sensor*, u8 address); | ||
63 | extern int et61x251_i2c_raw_write(struct et61x251_device*, u8 n, u8 data1, | 55 | extern 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); |