mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-01 06:42:31 +00:00
[media] media: mx3_camera: Improve data bus width check code for probe
This patch contains code change only to use the present macro- MX3_CAMERA_DATAWIDTH_MASK to check valid camera platform data bus width instead of enumerating every possible data bus width. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
c078ac18f3
commit
c4ede4ceda
@ -1171,9 +1171,7 @@ static int __devinit mx3_camera_probe(struct platform_device *pdev)
|
||||
|
||||
mx3_cam->pdata = pdev->dev.platform_data;
|
||||
mx3_cam->platform_flags = mx3_cam->pdata->flags;
|
||||
if (!(mx3_cam->platform_flags & (MX3_CAMERA_DATAWIDTH_4 |
|
||||
MX3_CAMERA_DATAWIDTH_8 | MX3_CAMERA_DATAWIDTH_10 |
|
||||
MX3_CAMERA_DATAWIDTH_15))) {
|
||||
if (!(mx3_cam->platform_flags & MX3_CAMERA_DATAWIDTH_MASK)) {
|
||||
/*
|
||||
* Platform hasn't set available data widths. This is bad.
|
||||
* Warn and use a default.
|
||||
|
Loading…
Reference in New Issue
Block a user