* [PATCH] remove duplicated defines in pxa_camera.c
@ 2009-01-05 17:11 Luotao Fu
2009-01-05 20:27 ` Guennadi Liakhovetski
0 siblings, 1 reply; 3+ messages in thread
From: Luotao Fu @ 2009-01-05 17:11 UTC (permalink / raw)
To: video4linux-list; +Cc: linux-kernel, Luotao Fu
Defines for CIR Registers have been moved to pxa_camera.h. So remove them from
pxa_camera.c to avoid compiler warnings.
Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
---
drivers/media/video/pxa_camera.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c
index cb8c5e1..4eda750 100644
--- a/drivers/media/video/pxa_camera.c
+++ b/drivers/media/video/pxa_camera.c
@@ -44,19 +44,6 @@
#define PXA_CAM_VERSION_CODE KERNEL_VERSION(0, 0, 5)
#define PXA_CAM_DRV_NAME "pxa27x-camera"
-/* Camera Interface */
-#define CICR0 0x0000
-#define CICR1 0x0004
-#define CICR2 0x0008
-#define CICR3 0x000C
-#define CICR4 0x0010
-#define CISR 0x0014
-#define CIFR 0x0018
-#define CITOR 0x001C
-#define CIBR0 0x0028
-#define CIBR1 0x0030
-#define CIBR2 0x0038
-
#define CICR0_DMAEN (1 << 31) /* DMA request enable */
#define CICR0_PAR_EN (1 << 30) /* Parity enable */
#define CICR0_SL_CAP_EN (1 << 29) /* Capture enable for slave mode */
--
1.5.6.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] remove duplicated defines in pxa_camera.c
2009-01-05 17:11 [PATCH] remove duplicated defines in pxa_camera.c Luotao Fu
@ 2009-01-05 20:27 ` Guennadi Liakhovetski
2009-01-05 20:43 ` Luotao Fu
0 siblings, 1 reply; 3+ messages in thread
From: Guennadi Liakhovetski @ 2009-01-05 20:27 UTC (permalink / raw)
To: Luotao Fu; +Cc: video4linux-list, linux-kernel
On Mon, 5 Jan 2009, Luotao Fu wrote:
> Defines for CIR Registers have been moved to pxa_camera.h. So remove them from
> pxa_camera.c to avoid compiler warnings.
>
> Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
> ---
> drivers/media/video/pxa_camera.c | 13 -------------
> 1 files changed, 0 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c
> index cb8c5e1..4eda750 100644
> --- a/drivers/media/video/pxa_camera.c
> +++ b/drivers/media/video/pxa_camera.c
> @@ -44,19 +44,6 @@
> #define PXA_CAM_VERSION_CODE KERNEL_VERSION(0, 0, 5)
> #define PXA_CAM_DRV_NAME "pxa27x-camera"
>
> -/* Camera Interface */
> -#define CICR0 0x0000
> -#define CICR1 0x0004
> -#define CICR2 0x0008
> -#define CICR3 0x000C
> -#define CICR4 0x0010
> -#define CISR 0x0014
> -#define CIFR 0x0018
> -#define CITOR 0x001C
> -#define CIBR0 0x0028
> -#define CIBR1 0x0030
> -#define CIBR2 0x0038
> -
> #define CICR0_DMAEN (1 << 31) /* DMA request enable */
> #define CICR0_PAR_EN (1 << 30) /* Parity enable */
> #define CICR0_SL_CAP_EN (1 << 29) /* Capture enable for slave mode */
> --
> 1.5.6.5
NAK. Please, see an earlier patch from Eric Miao, a correct fix for this
is in the queue.
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] remove duplicated defines in pxa_camera.c
2009-01-05 20:27 ` Guennadi Liakhovetski
@ 2009-01-05 20:43 ` Luotao Fu
0 siblings, 0 replies; 3+ messages in thread
From: Luotao Fu @ 2009-01-05 20:43 UTC (permalink / raw)
To: Guennadi Liakhovetski; +Cc: Luotao Fu, video4linux-list, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2039 bytes --]
On Mon, Jan 05, 2009 at 09:27:35PM +0100, Guennadi Liakhovetski wrote:
> On Mon, 5 Jan 2009, Luotao Fu wrote:
>
> > Defines for CIR Registers have been moved to pxa_camera.h. So remove them from
> > pxa_camera.c to avoid compiler warnings.
> >
> > Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
> > ---
> > drivers/media/video/pxa_camera.c | 13 -------------
> > 1 files changed, 0 insertions(+), 13 deletions(-)
> >
> > diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c
> > index cb8c5e1..4eda750 100644
> > --- a/drivers/media/video/pxa_camera.c
> > +++ b/drivers/media/video/pxa_camera.c
> > @@ -44,19 +44,6 @@
> > #define PXA_CAM_VERSION_CODE KERNEL_VERSION(0, 0, 5)
> > #define PXA_CAM_DRV_NAME "pxa27x-camera"
> >
> > -/* Camera Interface */
> > -#define CICR0 0x0000
> > -#define CICR1 0x0004
> > -#define CICR2 0x0008
> > -#define CICR3 0x000C
> > -#define CICR4 0x0010
> > -#define CISR 0x0014
> > -#define CIFR 0x0018
> > -#define CITOR 0x001C
> > -#define CIBR0 0x0028
> > -#define CIBR1 0x0030
> > -#define CIBR2 0x0038
> > -
> > #define CICR0_DMAEN (1 << 31) /* DMA request enable */
> > #define CICR0_PAR_EN (1 << 30) /* Parity enable */
> > #define CICR0_SL_CAP_EN (1 << 29) /* Capture enable for slave mode */
> > --
> > 1.5.6.5
>
> NAK. Please, see an earlier patch from Eric Miao, a correct fix for this
> is in the queue.
Ah ok. I checked the mainline git tree and video4linux tree as well as did some
search in a/lkml before I made this patch. I was indeed wondering why such
obvious thing stays unfixed. I'll take a look for the patch by Eric Miao then.
Thanks for the information
cheers
Luotao Fu
--
Pengutronix e.K. | Dipl.-Ing. Luotao Fu |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-05 20:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-05 17:11 [PATCH] remove duplicated defines in pxa_camera.c Luotao Fu
2009-01-05 20:27 ` Guennadi Liakhovetski
2009-01-05 20:43 ` Luotao Fu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).