V4L/DVB (10009): gspca - m5602: Convert some functions to be static

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Erik Andrén 2008-11-24 14:21:29 -03:00 committed by Mauro Carvalho Chehab
parent 082ec3b865
commit 658efb63e4
10 changed files with 14 additions and 15 deletions

View File

@ -18,6 +18,8 @@
#include "m5602_mt9m111.h" #include "m5602_mt9m111.h"
static void mt9m111_dump_registers(struct sd *sd);
int mt9m111_probe(struct sd *sd) int mt9m111_probe(struct sd *sd)
{ {
u8 data[2] = {0x00, 0x00}; u8 data[2] = {0x00, 0x00};
@ -308,7 +310,7 @@ int mt9m111_write_sensor(struct sd *sd, const u8 address,
return (err < 0) ? err : 0; return (err < 0) ? err : 0;
} }
void mt9m111_dump_registers(struct sd *sd) static void mt9m111_dump_registers(struct sd *sd)
{ {
u8 address, value[2] = {0x00, 0x00}; u8 address, value[2] = {0x00, 0x00};

View File

@ -93,8 +93,6 @@ int mt9m111_read_sensor(struct sd *sd, const u8 address,
int mt9m111_write_sensor(struct sd *sd, const u8 address, int mt9m111_write_sensor(struct sd *sd, const u8 address,
u8 *i2c_data, const u8 len); u8 *i2c_data, const u8 len);
void mt9m111_dump_registers(struct sd *sd);
int mt9m111_set_vflip(struct gspca_dev *gspca_dev, __s32 val); int mt9m111_set_vflip(struct gspca_dev *gspca_dev, __s32 val);
int mt9m111_get_vflip(struct gspca_dev *gspca_dev, __s32 *val); int mt9m111_get_vflip(struct gspca_dev *gspca_dev, __s32 *val);
int mt9m111_get_hflip(struct gspca_dev *gspca_dev, __s32 *val); int mt9m111_get_hflip(struct gspca_dev *gspca_dev, __s32 *val);

View File

@ -54,6 +54,8 @@ static
{ } { }
}; };
static void ov9650_dump_registers(struct sd *sd);
int ov9650_read_sensor(struct sd *sd, const u8 address, int ov9650_read_sensor(struct sd *sd, const u8 address,
u8 *i2c_data, const u8 len) u8 *i2c_data, const u8 len)
{ {
@ -561,7 +563,7 @@ out:
return err; return err;
} }
void ov9650_dump_registers(struct sd *sd) static void ov9650_dump_registers(struct sd *sd)
{ {
int address; int address;
info("Dumping the ov9650 register state"); info("Dumping the ov9650 register state");

View File

@ -129,9 +129,7 @@ int ov9650_power_down(struct sd *sd);
int ov9650_read_sensor(struct sd *sd, const u8 address, int ov9650_read_sensor(struct sd *sd, const u8 address,
u8 *i2c_data, const u8 len); u8 *i2c_data, const u8 len);
int ov9650_write_sensor(struct sd *sd, const u8 address, int ov9650_write_sensor(struct sd *sd, const u8 address,
u8 *i2c_data, const u8 len); u8 *i2c_data, const u8 len);
void ov9650_dump_registers(struct sd *sd);
int ov9650_set_exposure(struct gspca_dev *gspca_dev, __s32 val); int ov9650_set_exposure(struct gspca_dev *gspca_dev, __s32 val);
int ov9650_get_exposure(struct gspca_dev *gspca_dev, __s32 *val); int ov9650_get_exposure(struct gspca_dev *gspca_dev, __s32 *val);

View File

@ -18,6 +18,8 @@
#include "m5602_po1030.h" #include "m5602_po1030.h"
static void po1030_dump_registers(struct sd *sd);
int po1030_probe(struct sd *sd) int po1030_probe(struct sd *sd)
{ {
u8 prod_id = 0, ver_id = 0, i; u8 prod_id = 0, ver_id = 0, i;
@ -375,7 +377,7 @@ int po1030_power_down(struct sd *sd)
return 0; return 0;
} }
void po1030_dump_registers(struct sd *sd) static void po1030_dump_registers(struct sd *sd)
{ {
int address; int address;
u8 value = 0; u8 value = 0;

View File

@ -128,8 +128,6 @@ int po1030_probe(struct sd *sd);
int po1030_init(struct sd *sd); int po1030_init(struct sd *sd);
int po1030_power_down(struct sd *sd); int po1030_power_down(struct sd *sd);
void po1030_dump_registers(struct sd *sd);
int po1030_read_sensor(struct sd *sd, const u8 address, int po1030_read_sensor(struct sd *sd, const u8 address,
u8 *i2c_data, const u8 len); u8 *i2c_data, const u8 len);
int po1030_write_sensor(struct sd *sd, const u8 address, int po1030_write_sensor(struct sd *sd, const u8 address,

View File

@ -50,6 +50,7 @@ static
{ } { }
}; };
static void s5k4aa_dump_registers(struct sd *sd);
int s5k4aa_probe(struct sd *sd) int s5k4aa_probe(struct sd *sd)
{ {
@ -455,7 +456,7 @@ out:
return err; return err;
} }
void s5k4aa_dump_registers(struct sd *sd) static void s5k4aa_dump_registers(struct sd *sd)
{ {
int address; int address;
u8 page, old_page; u8 page, old_page;

View File

@ -67,8 +67,6 @@ int s5k4aa_probe(struct sd *sd);
int s5k4aa_init(struct sd *sd); int s5k4aa_init(struct sd *sd);
int s5k4aa_power_down(struct sd *sd); int s5k4aa_power_down(struct sd *sd);
void s5k4aa_dump_registers(struct sd *sd);
int s5k4aa_read_sensor(struct sd *sd, const u8 address, int s5k4aa_read_sensor(struct sd *sd, const u8 address,
u8 *i2c_data, const u8 len); u8 *i2c_data, const u8 len);
int s5k4aa_write_sensor(struct sd *sd, const u8 address, int s5k4aa_write_sensor(struct sd *sd, const u8 address,

View File

@ -18,6 +18,8 @@
#include "m5602_s5k83a.h" #include "m5602_s5k83a.h"
static void s5k83a_dump_registers(struct sd *sd);
int s5k83a_probe(struct sd *sd) int s5k83a_probe(struct sd *sd)
{ {
u8 prod_id = 0, ver_id = 0; u8 prod_id = 0, ver_id = 0;

View File

@ -46,8 +46,6 @@ int s5k83a_probe(struct sd *sd);
int s5k83a_init(struct sd *sd); int s5k83a_init(struct sd *sd);
int s5k83a_power_down(struct sd *sd); int s5k83a_power_down(struct sd *sd);
void s5k83a_dump_registers(struct sd *sd);
int s5k83a_read_sensor(struct sd *sd, const u8 address, int s5k83a_read_sensor(struct sd *sd, const u8 address,
u8 *i2c_data, const u8 len); u8 *i2c_data, const u8 len);
int s5k83a_write_sensor(struct sd *sd, const u8 address, int s5k83a_write_sensor(struct sd *sd, const u8 address,