[PATCH] V4L/DVB: tea6415c: return -EIO if i2c_check_functionality fails

2010-11-01 Thread Axel Lin
If the adapter does not support I2C_FUNC_SMBUS_WRITE_BYTE, return -EIO instead of 0. Signed-off-by: Axel Lin axel@gmail.com --- drivers/media/video/tea6415c.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/tea6415c.c b/drivers/media/video

[PATCH RESEND] [media] convert drivers/media/* to use module_platform_driver()

2012-01-09 Thread Axel Lin
...@denx.de Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de Cc: Marek Szyprowski m.szyprow...@samsung.com Cc: Robert Jarzmik robert.jarz...@free.fr Cc: Jonathan Corbet cor...@lwn.net Cc: Daniel Drake d...@laptop.org Signed-off-by: Axel Lin axel@gmail.com Acked-by: Laurent Pinchart laurent.pinch

[PATCH] [media] convert drivers/media/* to use module_i2c_driver()

2012-01-21 Thread Axel Lin
This patch converts the drivers in drivers/media/* to use the module_i2_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin axel@gmail.com Cc: Mauro Carvalho Chehab mche...@infradead.org Cc: Kyungmin Park kyungmin.p...@samsung.com Cc: Heungjun Kim riverful

[PATCH RESEND] [media] convert drivers/media/* to use module_i2c_driver()

2012-02-12 Thread Axel Lin
This patch converts the drivers in drivers/media/* to use the module_i2_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin axel@gmail.com Cc: Mauro Carvalho Chehab mche...@infradead.org Cc: Kyungmin Park kyungmin.p...@samsung.com Cc: Heungjun Kim riverful

[PATCH] [media] s5c73m3: Fix off-by-one valid range checking for fie-index

2013-04-29 Thread Axel Lin
Current code uses fie-index as array subscript, thus the valid value range is 0 ... ARRAY_SIZE(s5c73m3_intervals) - 1. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/i2c/s5c73m3/s5c73m3-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c

[PATCH] [media] exynos4-is: Fix off-by-one valid range checking for is-config_index

2013-04-30 Thread Axel Lin
Current code uses is-config_index as array subscript, thus the valid value range is 0 ... ARRAY_SIZE(cmd) - 1. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/platform/exynos4-is/fimc-is-regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media

[PATCH] [media] media/radio/tef6862: fix checking return value of i2c_master_send

2011-11-16 Thread Axel Lin
i2c_master_send returns negative errno, or else the number of bytes written. Signed-off-by: Axel Lin axel@gmail.com --- drivers/media/radio/tef6862.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/media/radio/tef6862.c b/drivers/media/radio/tef6862.c

[PATCH] [media] tda7432: Fix setting TDA7432_MUTE bit for TDA7432_RF register

2014-08-08 Thread Axel Lin
Fix a copy-paste bug when converting to the control framework. Fixes: commit 5d478e0de871 ([media] tda7432: convert to the control framework) Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/i2c/tda7432.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 1/4] [media] ov7670: Include media/v4l2-image-sizes.h

2014-08-08 Thread Axel Lin
So we can remove the same defines in the driver code. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/i2c/ov7670.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index cdd7c1b..dd3db24

[PATCH 2/4] [media] vs6624: Include media/v4l2-image-sizes.h

2014-08-09 Thread Axel Lin
So we can remove the same defines in the driver code. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/i2c/vs6624.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/media/i2c/vs6624.c b/drivers/media/i2c/vs6624.c index 23f4f65..373f2df

[PATCH 3/4] [media] soc_camera: mt9t112: Include media/v4l2-image-sizes.h

2014-08-09 Thread Axel Lin
So we can remove the same defines in the driver code. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/i2c/soc_camera/mt9t112.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/i2c/soc_camera/mt9t112.c b/drivers/media/i2c/soc_camera/mt9t112.c

[PATCH 4/4] [media] soc_camera: ov772x: Include media/v4l2-image-sizes.h

2014-08-09 Thread Axel Lin
So we can remove the same defines in the driver code. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/i2c/soc_camera/ov772x.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/media/i2c/soc_camera/ov772x.c b/drivers/media/i2c/soc_camera/ov772x.c index

[PATCH 1/2] [media] sh_veu: Include media/v4l2-image-sizes.h

2014-08-09 Thread Axel Lin
So we can remove the same defines in the driver code. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/platform/sh_veu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/sh_veu.c b/drivers/media/platform/sh_veu.c index 8dc279d..be3b3bc

[PATCH 2/2] [media] via-camera: Include media/v4l2-image-sizes.h

2014-08-09 Thread Axel Lin
So we can remove the same defines in the driver code. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/platform/via-camera.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/media/platform/via-camera.c b/drivers/media/platform/via-camera.c index

[PATCH] [media] saa6752hs: Convert to devm_kzalloc()

2014-08-10 Thread Axel Lin
Using the managed function the kfree() calls can be removed from the probe error path and the remove handler. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/i2c/saa6752hs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/saa6752hs.c b

[PATCH] [media] mt9v032: Remove duplicate test for I2C_FUNC_SMBUS_WORD_DATA functionality

2014-08-10 Thread Axel Lin
functionality check in the driver code. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/i2c/mt9v032.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c index d044bce..f9e4bf7 100644 --- a/drivers/media/i2c/mt9v032.c

[PATCH] [media] tvp7002: Don't update device-streaming if write to register fails

2014-08-16 Thread Axel Lin
This ensures device-streaming has correct status. Signed-off-by: Axel Lin axel@ingics.com --- drivers/media/i2c/tvp7002.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/media/i2c/tvp7002.c b/drivers/media/i2c/tvp7002.c index 11f2387