V4L/DVB (10011): m5602: Remove the write and read sensor from the main struct
authorErik Andrén <erik.andren@gmail.com>
Tue, 25 Nov 2008 06:50:05 +0000 (03:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:50 +0000 (09:39 -0200)
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/m5602/m5602_mt9m111.h
drivers/media/video/gspca/m5602/m5602_ov9650.h
drivers/media/video/gspca/m5602/m5602_s5k4aa.h
drivers/media/video/gspca/m5602/m5602_s5k83a.h
drivers/media/video/gspca/m5602/m5602_sensor.h

index 4b4c1967be7f29d9a2b5678e4b2a7d5f17e0d222..0fe4d632789751659d9ab66eede5ec0bc46d86d0 100644 (file)
@@ -109,9 +109,6 @@ static struct m5602_sensor mt9m111 = {
        .init = mt9m111_init,
        .power_down = mt9m111_power_down,
 
-       .read_sensor = mt9m111_read_sensor,
-       .write_sensor = mt9m111_write_sensor,
-
        .nctrls = 3,
        .ctrls = {
        {
index 4d90bd0850916e7182b9ef8a60fa0c788fa59f54..32fc440c5c13b6a73bc7530cec4945d5b681b3ab 100644 (file)
@@ -156,8 +156,6 @@ static struct m5602_sensor ov9650 = {
        .probe = ov9650_probe,
        .init = ov9650_init,
        .power_down = ov9650_power_down,
-       .read_sensor = ov9650_read_sensor,
-       .write_sensor = ov9650_write_sensor,
 
        .nctrls = 8,
        .ctrls = {
@@ -341,7 +339,7 @@ static const unsigned char init_ov9650[][3] =
        {SENSOR, OV9650_ACOM38, 0x81},
        /* Turn off color matrix coefficient double option */
        {SENSOR, OV9650_COM16, 0x00},
-               /* Enable color matrix for RGB/YUV, Delay Y channel,
+       /* Enable color matrix for RGB/YUV, Delay Y channel,
        set output Y/UV delay to 1 */
        {SENSOR, OV9650_COM13, 0x19},
        /* Enable digital BLC, Set output mode to U Y V Y */
index 1ee649b8d634ac7ce80332fc7bab313d9012327f..701d30292ac3bf3dc8cef50a88a1846080ee7ead 100644 (file)
@@ -86,8 +86,6 @@ static struct m5602_sensor s5k4aa = {
        .probe = s5k4aa_probe,
        .init = s5k4aa_init,
        .power_down = s5k4aa_power_down,
-       .read_sensor = s5k4aa_read_sensor,
-       .write_sensor = s5k4aa_write_sensor,
        .i2c_slave_id = 0x5a,
        .nctrls = 4,
        .ctrls = {
index 5080da19610758a57809c7d69c7812a8a54a1964..793c967875d76a2b25730958168c4e728108b793 100644 (file)
@@ -68,8 +68,6 @@ static struct m5602_sensor s5k83a = {
        .probe = s5k83a_probe,
        .init = s5k83a_init,
        .power_down = s5k83a_power_down,
-       .read_sensor = s5k83a_read_sensor,
-       .write_sensor = s5k83a_write_sensor,
        .i2c_slave_id = 0x5a,
        .nctrls = 5,
        .ctrls = {
index 60c9a48e0c0291cb478c3d51d60e6608438fb6a1..c0900023680e686ddbc4e04ee3275941f09d5fe3 100644 (file)
@@ -58,14 +58,6 @@ struct m5602_sensor {
        /* Performs a power down sequence */
        int (*power_down)(struct sd *sd);
 
-       /* Reads a sensor register */
-       int (*read_sensor)(struct sd *sd, const u8 address,
-             u8 *i2c_data, const u8 len);
-
-       /* Writes to a sensor register */
-       int (*write_sensor)(struct sd *sd, const u8 address,
-             u8 *i2c_data, const u8 len);
-
        int nctrls;
        struct ctrl ctrls[M5602_MAX_CTRLS];