summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/zoran_device.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-02-15 16:41:06 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-02-15 16:41:06 -0200
commit18ac0ef62eca3a89e0bf1f3c23bb7004e760d15b (patch)
tree626230741ccc7a6069a918e2ab8d562b73e88dd7 /linux/drivers/media/video/zoran_device.c
parenta47972fa9d14e12d1adf54ecd767f7c1ce372b36 (diff)
downloadmediapointer-dvb-s2-18ac0ef62eca3a89e0bf1f3c23bb7004e760d15b.tar.gz
mediapointer-dvb-s2-18ac0ef62eca3a89e0bf1f3c23bb7004e760d15b.tar.bz2
zoran: Fix namespace conflicts with Zoran 'GPIO_MAX' enum
From: Mauro Carvalho Chehab <mchehab@infradead.org> Thanks to Martin Michlmayr <tbm@cyrius.com> for reporting this issue: The zoran driver fails to compile on the ARM Orion platform with: In file included from drivers/media/video/zoran_procfs.c:50: drivers/media/video/zoran.h:232: error: expected identifier before numeric constant The reason is that drivers/media/video/zoran.h defines an enum with GPIO_MAX in it, but Orion contains a #define GPIO_MAX 32 in include/asm-arm/arch-orion/orion.h Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/zoran_device.c')
-rw-r--r--linux/drivers/media/video/zoran_device.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/linux/drivers/media/video/zoran_device.c b/linux/drivers/media/video/zoran_device.c
index b7f62ee8a..ed7ab4be2 100644
--- a/linux/drivers/media/video/zoran_device.c
+++ b/linux/drivers/media/video/zoran_device.c
@@ -252,7 +252,7 @@ void
jpeg_codec_sleep (struct zoran *zr,
int sleep)
{
- GPIO(zr, zr->card.gpio[GPIO_JPEG_SLEEP], !sleep);
+ GPIO(zr, zr->card.gpio[ZR_GPIO_JPEG_SLEEP], !sleep);
if (!sleep) {
dprintk(3,
KERN_DEBUG
@@ -279,9 +279,9 @@ jpeg_codec_reset (struct zoran *zr)
0);
udelay(2);
} else {
- GPIO(zr, zr->card.gpio[GPIO_JPEG_RESET], 0);
+ GPIO(zr, zr->card.gpio[ZR_GPIO_JPEG_RESET], 0);
udelay(2);
- GPIO(zr, zr->card.gpio[GPIO_JPEG_RESET], 1);
+ GPIO(zr, zr->card.gpio[ZR_GPIO_JPEG_RESET], 1);
udelay(2);
}
@@ -690,7 +690,7 @@ static inline void
set_frame (struct zoran *zr,
int val)
{
- GPIO(zr, zr->card.gpio[GPIO_JPEG_FRAME], val);
+ GPIO(zr, zr->card.gpio[ZR_GPIO_JPEG_FRAME], val);
}
static void
@@ -706,8 +706,8 @@ set_videobus_dir (struct zoran *zr,
GPIO(zr, 5, 1);
break;
default:
- GPIO(zr, zr->card.gpio[GPIO_VID_DIR],
- zr->card.gpio_pol[GPIO_VID_DIR] ? !val : val);
+ GPIO(zr, zr->card.gpio[ZR_GPIO_VID_DIR],
+ zr->card.gpio_pol[ZR_GPIO_VID_DIR] ? !val : val);
break;
}
}