mt9v022: allow setting of bus width from board code
Quoted 24 lines
This patch removes the phytec specific setting of the bus width and switches to the more generic query_bus_param/set_bus_param hooks
Signed-off-by Sascha Hauer <[email protected]>--- drivers/media/video/Kconfig | 7 --- drivers/media/video/mt9v022.c | 97 +++++------------------------------------ 2 files changed, 11 insertions(+), 93 deletions(-)drivers/media/video/Kconfig +1
-0@@ -729,6 +664,7 @@ static int mt9v022_video_probe(struct soc_camera_device *icd) /* Set monochrome or colour sensor type */ if (sensor_type && (!strcmp("colour", sensor_type) || !strcmp("color", sensor_type))) { + if (1) { ret = reg_write(icd, MT9V022_PIXEL_OPERATION_MODE, 4 | 0x11); mt9v022->model = V4L2_IDENT_MT9V022IX7ATC;
Quoted 1 line
icd->formats=mt9v022_colour_formats;
'if (1) {': some left-over debugging?
Regards,
Hans
Signature · 1 line
Hans Verkuil - video4linux developer - sponsored by TANDBERG
Quoted 12 lines · Hans Verkuil
Quoted 12 lines
This patch removes the phytec specific setting of the bus width and switches to the more generic query_bus_param/set_bus_param hooks
Signed-off-by Sascha Hauer <[email protected]>--- drivers/media/video/Kconfig | 7 --- drivers/media/video/mt9v022.c | 97 +++++------------------------------------ 2 files changed, 11 insertions(+), 93 deletions(-)
Quoted 15 lines
Quoted 12 lines
drivers/media/video/Kconfig +1
-0@@ -729,6 +664,7 @@ static int mt9v022_video_probe(struct soc_camera_device *icd) /* Set monochrome or colour sensor type */ if (sensor_type && (!strcmp("colour", sensor_type) || !strcmp("color", sensor_type))) { + if (1) { ret = reg_write(icd, MT9V022_PIXEL_OPERATION_MODE, 4 | 0x11); mt9v022->model = V4L2_IDENT_MT9V022IX7ATC;Quoted 1 line
icd->formats=mt9v022_colour_formats;'if (1) {': some left-over debugging?
oops, yes.
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |