Skip to content

Commit

Permalink
[ARM] pxa/pcm990: use negative number for an invalid GPIO in camera data
Browse files Browse the repository at this point in the history
0 is a valid GPIO number, use a negative number to specify, that this camera
doesn't have a GPIO for bus-width switching.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
  • Loading branch information
Guennadi Liakhovetski authored and Eric Miao committed Nov 26, 2008
1 parent 844c6f6 commit 72e9622
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-pxa/pcm990-baseboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ static struct soc_camera_link iclink[] = {
.gpio = NR_BUILTIN_GPIO + 1,
}, {
.bus_id = 0, /* Must match with the camera ID above */
.gpio = -ENXIO,
}
};

Expand Down

0 comments on commit 72e9622

Please sign in to comment.