diff options
Diffstat (limited to 'drivers/media/video/gspca/m5602/m5602_sensor.h')
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_sensor.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_sensor.h b/drivers/media/video/gspca/m5602/m5602_sensor.h index 60c9a48e0c02..261623f0da48 100644 --- a/drivers/media/video/gspca/m5602/m5602_sensor.h +++ b/drivers/media/video/gspca/m5602/m5602_sensor.h | |||
@@ -49,23 +49,21 @@ struct m5602_sensor { | |||
49 | /* What i2c address the sensor is connected to */ | 49 | /* What i2c address the sensor is connected to */ |
50 | u8 i2c_slave_id; | 50 | u8 i2c_slave_id; |
51 | 51 | ||
52 | /* Width of each i2c register (in bytes) */ | ||
53 | u8 i2c_regW; | ||
54 | |||
52 | /* Probes if the sensor is connected */ | 55 | /* Probes if the sensor is connected */ |
53 | int (*probe)(struct sd *sd); | 56 | int (*probe)(struct sd *sd); |
54 | 57 | ||
55 | /* Performs a initialization sequence */ | 58 | /* Performs a initialization sequence */ |
56 | int (*init)(struct sd *sd); | 59 | int (*init)(struct sd *sd); |
57 | 60 | ||
61 | /* Executed when the camera starts to send data */ | ||
62 | int (*start)(struct sd *sd); | ||
63 | |||
58 | /* Performs a power down sequence */ | 64 | /* Performs a power down sequence */ |
59 | int (*power_down)(struct sd *sd); | 65 | int (*power_down)(struct sd *sd); |
60 | 66 | ||
61 | /* Reads a sensor register */ | ||
62 | int (*read_sensor)(struct sd *sd, const u8 address, | ||
63 | u8 *i2c_data, const u8 len); | ||
64 | |||
65 | /* Writes to a sensor register */ | ||
66 | int (*write_sensor)(struct sd *sd, const u8 address, | ||
67 | u8 *i2c_data, const u8 len); | ||
68 | |||
69 | int nctrls; | 67 | int nctrls; |
70 | struct ctrl ctrls[M5602_MAX_CTRLS]; | 68 | struct ctrl ctrls[M5602_MAX_CTRLS]; |
71 | 69 | ||