diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-06-23 05:49:34 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 01:05:13 -0400 |
commit | b20c3cf0c225df1445fa220de175b8d9bc1c3659 (patch) | |
tree | 8b0495c4d9e16473b5effa14a03a959f14254a52 | |
parent | dc46ace15e50cb8af3f3072c00aaf3429770b0e2 (diff) |
V4L/DVB (4147): Drivers/media/video/pwc/: make code static
This patch makes the following needlessly global code static:
- pwc-ctrl.c: pwc_get_leds()
- pwc_preferred_compression
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/pwc/pwc-ctrl.c | 2 | ||||
-rw-r--r-- | drivers/media/video/pwc/pwc-if.c | 2 | ||||
-rw-r--r-- | drivers/media/video/pwc/pwc.h | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/pwc/pwc-ctrl.c b/drivers/media/video/pwc/pwc-ctrl.c index 62a581399b19..0bd115588f31 100644 --- a/drivers/media/video/pwc/pwc-ctrl.c +++ b/drivers/media/video/pwc/pwc-ctrl.c | |||
@@ -925,7 +925,7 @@ int pwc_set_leds(struct pwc_device *pdev, int on_value, int off_value) | |||
925 | return SendControlMsg(SET_STATUS_CTL, LED_FORMATTER, 2); | 925 | return SendControlMsg(SET_STATUS_CTL, LED_FORMATTER, 2); |
926 | } | 926 | } |
927 | 927 | ||
928 | int pwc_get_leds(struct pwc_device *pdev, int *on_value, int *off_value) | 928 | static int pwc_get_leds(struct pwc_device *pdev, int *on_value, int *off_value) |
929 | { | 929 | { |
930 | unsigned char buf[2]; | 930 | unsigned char buf[2]; |
931 | int ret; | 931 | int ret; |
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c index d1cec3976063..47d0d83a0264 100644 --- a/drivers/media/video/pwc/pwc-if.c +++ b/drivers/media/video/pwc/pwc-if.c | |||
@@ -133,7 +133,7 @@ static int default_fbufs = 3; /* Default number of frame buffers */ | |||
133 | #endif | 133 | #endif |
134 | static int power_save = 0; | 134 | static int power_save = 0; |
135 | static int led_on = 100, led_off = 0; /* defaults to LED that is on while in use */ | 135 | static int led_on = 100, led_off = 0; /* defaults to LED that is on while in use */ |
136 | int pwc_preferred_compression = 1; /* 0..3 = uncompressed..high */ | 136 | static int pwc_preferred_compression = 1; /* 0..3 = uncompressed..high */ |
137 | static struct { | 137 | static struct { |
138 | int type; | 138 | int type; |
139 | char serial_number[30]; | 139 | char serial_number[30]; |
diff --git a/drivers/media/video/pwc/pwc.h b/drivers/media/video/pwc/pwc.h index a087108d0e02..629f79e44fb6 100644 --- a/drivers/media/video/pwc/pwc.h +++ b/drivers/media/video/pwc/pwc.h | |||
@@ -274,7 +274,6 @@ extern "C" { | |||
274 | #if CONFIG_PWC_DEBUG | 274 | #if CONFIG_PWC_DEBUG |
275 | extern int pwc_trace; | 275 | extern int pwc_trace; |
276 | #endif | 276 | #endif |
277 | extern int pwc_preferred_compression; | ||
278 | extern int pwc_mbufs; | 277 | extern int pwc_mbufs; |
279 | 278 | ||
280 | /** functions in pwc-if.c */ | 279 | /** functions in pwc-if.c */ |
@@ -308,7 +307,6 @@ extern int pwc_set_gamma(struct pwc_device *pdev, int value); | |||
308 | extern int pwc_get_saturation(struct pwc_device *pdev, int *value); | 307 | extern int pwc_get_saturation(struct pwc_device *pdev, int *value); |
309 | extern int pwc_set_saturation(struct pwc_device *pdev, int value); | 308 | extern int pwc_set_saturation(struct pwc_device *pdev, int value); |
310 | extern int pwc_set_leds(struct pwc_device *pdev, int on_value, int off_value); | 309 | extern int pwc_set_leds(struct pwc_device *pdev, int on_value, int off_value); |
311 | extern int pwc_get_leds(struct pwc_device *pdev, int *on_value, int *off_value); | ||
312 | extern int pwc_get_cmos_sensor(struct pwc_device *pdev, int *sensor); | 310 | extern int pwc_get_cmos_sensor(struct pwc_device *pdev, int *sensor); |
313 | extern int pwc_restore_user(struct pwc_device *pdev); | 311 | extern int pwc_restore_user(struct pwc_device *pdev); |
314 | extern int pwc_save_user(struct pwc_device *pdev); | 312 | extern int pwc_save_user(struct pwc_device *pdev); |