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
...@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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
17 matches
Mail list logo