aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-10-07 20:05:52 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:17:47 -0400
commit1001f90865c2ccd1df7b3a86603c134528e23090 (patch)
tree6e8134a338e33988a632705ee3f900f9af9a37d9 /drivers/media
parent82c3ccaa974345b42cabcdb19f81f4776156b1f7 (diff)
[media] cx231xx: remove some unused functions
This file came originally from cx23885 driver. Some functions aren't used. Now that they are declared as static, we have those errors: drivers/media/video/cx231xx/cx231xx-417.c:615: warning: ‘mc417_gpio_set’ defined but not used drivers/media/video/cx231xx/cx231xx-417.c:625: warning: ‘mc417_gpio_clear’ defined but not used drivers/media/video/cx231xx/cx231xx-417.c:635: warning: ‘mc417_gpio_enable’ defined but not used As they're not used, just remove them. If needed, they can be restored from the git logs or from the cx23885 driver. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/cx231xx/cx231xx-417.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-417.c b/drivers/media/video/cx231xx/cx231xx-417.c
index 2dbad82aab61..e456b97dc32e 100644
--- a/drivers/media/video/cx231xx/cx231xx-417.c
+++ b/drivers/media/video/cx231xx/cx231xx-417.c
@@ -612,39 +612,6 @@ static int mc417_memory_read(struct cx231xx *dev, u32 address, u32 *value)
612 return ret; 612 return ret;
613} 613}
614 614
615static void mc417_gpio_set(struct cx231xx *dev, u32 mask)
616{
617 u32 val;
618
619 /* Set the gpio value */
620 mc417_register_read(dev, 0x900C, &val);
621 val |= (mask & 0x000ffff);
622 mc417_register_write(dev, 0x900C, val);
623}
624
625static void mc417_gpio_clear(struct cx231xx *dev, u32 mask)
626{
627 u32 val;
628
629 /* Clear the gpio value */
630 mc417_register_read(dev, 0x900C, &val);
631 val &= ~(mask & 0x0000ffff);
632 mc417_register_write(dev, 0x900C, val);
633}
634
635static void mc417_gpio_enable(struct cx231xx *dev, u32 mask, int asoutput)
636{
637 u32 val;
638
639 /* Enable GPIO direction bits */
640 mc417_register_read(dev, 0x9020, &val);
641 if (asoutput)
642 val |= (mask & 0x0000ffff);
643 else
644 val &= ~(mask & 0x0000ffff);
645
646 mc417_register_write(dev, 0x9020, val);
647}
648/* ------------------------------------------------------------------ */ 615/* ------------------------------------------------------------------ */
649 616
650/* MPEG encoder API */ 617/* MPEG encoder API */