Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76398
b: refs/heads/master
c: f760d61
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent e05a51a commit e7ddf66
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2fbaa519befdb3db2485116518f3af55be604e6
refs/heads/master: f760d618ab385e1c4060f1bfebc335971a5b79f4
20 changes: 10 additions & 10 deletions trunk/drivers/media/video/et61x251/et61x251_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ int et61x251_write_reg(struct et61x251_device* cam, u8 value, u16 index)
}


int et61x251_read_reg(struct et61x251_device* cam, u16 index)
static int et61x251_read_reg(struct et61x251_device* cam, u16 index)
{
struct usb_device* udev = cam->usbdev;
u8* buff = cam->control_buffer;
Expand Down Expand Up @@ -268,9 +268,9 @@ et61x251_i2c_wait(struct et61x251_device* cam,
}


int
et61x251_i2c_try_read(struct et61x251_device* cam,
const struct et61x251_sensor* sensor, u8 address)
static int et61x251_i2c_try_read(struct et61x251_device* cam,
const struct et61x251_sensor* sensor,
u8 address)
{
struct usb_device* udev = cam->usbdev;
u8* data = cam->control_buffer;
Expand Down Expand Up @@ -301,10 +301,9 @@ et61x251_i2c_try_read(struct et61x251_device* cam,
}


int
et61x251_i2c_try_write(struct et61x251_device* cam,
const struct et61x251_sensor* sensor, u8 address,
u8 value)
static int et61x251_i2c_try_write(struct et61x251_device* cam,
const struct et61x251_sensor* sensor,
u8 address, u8 value)
{
struct usb_device* udev = cam->usbdev;
u8* data = cam->control_buffer;
Expand Down Expand Up @@ -387,13 +386,14 @@ et61x251_i2c_raw_write(struct et61x251_device* cam, u8 n, u8 data1, u8 data2,
}


int et61x251_i2c_read(struct et61x251_device* cam, u8 address)
static int et61x251_i2c_read(struct et61x251_device* cam, u8 address)
{
return et61x251_i2c_try_read(cam, &cam->sensor, address);
}


int et61x251_i2c_write(struct et61x251_device* cam, u8 address, u8 value)
static int et61x251_i2c_write(struct et61x251_device* cam,
u8 address, u8 value)
{
return et61x251_i2c_try_write(cam, &cam->sensor, address, value);
}
Expand Down
8 changes: 0 additions & 8 deletions trunk/drivers/media/video/et61x251/et61x251_sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ et61x251_attach_sensor(struct et61x251_device* cam,
/*****************************************************************************/

extern int et61x251_write_reg(struct et61x251_device*, u8 value, u16 index);
extern int et61x251_read_reg(struct et61x251_device*, u16 index);
extern int et61x251_i2c_write(struct et61x251_device*, u8 address, u8 value);
extern int et61x251_i2c_read(struct et61x251_device*, u8 address);
extern int et61x251_i2c_try_write(struct et61x251_device*,
const struct et61x251_sensor*, u8 address,
u8 value);
extern int et61x251_i2c_try_read(struct et61x251_device*,
const struct et61x251_sensor*, u8 address);
extern int et61x251_i2c_raw_write(struct et61x251_device*, u8 n, u8 data1,
u8 data2, u8 data3, u8 data4, u8 data5,
u8 data6, u8 data7, u8 data8, u8 address);
Expand Down

0 comments on commit e7ddf66

Please sign in to comment.