This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MT9P031: patch

Hello!

I work with DM368, dvsk_4_02 and linux-2.6.32. I enable CONFIG_VIDEO_ADV_DEBUG option in linux and couldn't compile driver for MT9P031.

This is patch solve this problem:

---
 drivers/media/video/mt9p031.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/mt9p031.c b/drivers/media/video/mt9p031.c
index 66b5e54..50ba735 100644
--- a/drivers/media/video/mt9p031.c
+++ b/drivers/media/video/mt9p031.c
@@ -622,8 +622,8 @@ static const struct v4l2_subdev_core_ops mt9p031_core_ops = {
    .s_ctrl = mt9p031_set_control,
     .s_std     =  mt9p031_set_standard,
 #ifdef CONFIG_VIDEO_ADV_DEBUG
-   .get_register = mt9p031_get_register,
-   .set_register = mt9p031_set_register,
+   .g_register = mt9p031_get_register,
+   .s_register = mt9p031_set_register,
 #endif
 };

-- 
1.7.10


Because linux-2.6.32 is not very new I do not send patch.