Commit d58626c2 authored by Erik Andrén's avatar Erik Andrén Committed by Mauro Carvalho Chehab

V4L/DVB (10011): m5602: Remove the write and read sensor from the main struct

Signed-off-by: default avatarErik Andrén <erik.andren@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 3efb6bda
...@@ -109,9 +109,6 @@ static struct m5602_sensor mt9m111 = { ...@@ -109,9 +109,6 @@ static struct m5602_sensor mt9m111 = {
.init = mt9m111_init, .init = mt9m111_init,
.power_down = mt9m111_power_down, .power_down = mt9m111_power_down,
.read_sensor = mt9m111_read_sensor,
.write_sensor = mt9m111_write_sensor,
.nctrls = 3, .nctrls = 3,
.ctrls = { .ctrls = {
{ {
......
...@@ -156,8 +156,6 @@ static struct m5602_sensor ov9650 = { ...@@ -156,8 +156,6 @@ static struct m5602_sensor ov9650 = {
.probe = ov9650_probe, .probe = ov9650_probe,
.init = ov9650_init, .init = ov9650_init,
.power_down = ov9650_power_down, .power_down = ov9650_power_down,
.read_sensor = ov9650_read_sensor,
.write_sensor = ov9650_write_sensor,
.nctrls = 8, .nctrls = 8,
.ctrls = { .ctrls = {
...@@ -341,7 +339,7 @@ static const unsigned char init_ov9650[][3] = ...@@ -341,7 +339,7 @@ static const unsigned char init_ov9650[][3] =
{SENSOR, OV9650_ACOM38, 0x81}, {SENSOR, OV9650_ACOM38, 0x81},
/* Turn off color matrix coefficient double option */ /* Turn off color matrix coefficient double option */
{SENSOR, OV9650_COM16, 0x00}, {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 */ set output Y/UV delay to 1 */
{SENSOR, OV9650_COM13, 0x19}, {SENSOR, OV9650_COM13, 0x19},
/* Enable digital BLC, Set output mode to U Y V Y */ /* Enable digital BLC, Set output mode to U Y V Y */
......
...@@ -86,8 +86,6 @@ static struct m5602_sensor s5k4aa = { ...@@ -86,8 +86,6 @@ static struct m5602_sensor s5k4aa = {
.probe = s5k4aa_probe, .probe = s5k4aa_probe,
.init = s5k4aa_init, .init = s5k4aa_init,
.power_down = s5k4aa_power_down, .power_down = s5k4aa_power_down,
.read_sensor = s5k4aa_read_sensor,
.write_sensor = s5k4aa_write_sensor,
.i2c_slave_id = 0x5a, .i2c_slave_id = 0x5a,
.nctrls = 4, .nctrls = 4,
.ctrls = { .ctrls = {
......
...@@ -68,8 +68,6 @@ static struct m5602_sensor s5k83a = { ...@@ -68,8 +68,6 @@ static struct m5602_sensor s5k83a = {
.probe = s5k83a_probe, .probe = s5k83a_probe,
.init = s5k83a_init, .init = s5k83a_init,
.power_down = s5k83a_power_down, .power_down = s5k83a_power_down,
.read_sensor = s5k83a_read_sensor,
.write_sensor = s5k83a_write_sensor,
.i2c_slave_id = 0x5a, .i2c_slave_id = 0x5a,
.nctrls = 5, .nctrls = 5,
.ctrls = { .ctrls = {
......
...@@ -58,14 +58,6 @@ struct m5602_sensor { ...@@ -58,14 +58,6 @@ struct m5602_sensor {
/* Performs a power down sequence */ /* Performs a power down sequence */
int (*power_down)(struct sd *sd); 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; int nctrls;
struct ctrl ctrls[M5602_MAX_CTRLS]; struct ctrl ctrls[M5602_MAX_CTRLS];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment