aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Schaefer <fschaefer.oss@googlemail.com>2013-02-15 12:38:29 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-04 12:48:58 -0500
commit511ffe920b483340d61bb707ee96e7d6a9e6b13b (patch)
treec2be6ddacd2d323a53b0b37f3bc24895f889ec6a
parent6c3598e641d447edbaaa05ff0d4cd6da152dc3f4 (diff)
[media] em28xx: remove unused image quality control functions
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/usb/em28xx/em28xx.h66
1 files changed, 0 insertions, 66 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h
index 5f0b2c59e846..6a9e3e1b9929 100644
--- a/drivers/media/usb/em28xx/em28xx.h
+++ b/drivers/media/usb/em28xx/em28xx.h
@@ -744,72 +744,6 @@ static inline int em28xx_compression_disable(struct em28xx *dev)
744 return em28xx_write_reg(dev, EM28XX_R26_COMPR, 0x00); 744 return em28xx_write_reg(dev, EM28XX_R26_COMPR, 0x00);
745} 745}
746 746
747static inline int em28xx_contrast_get(struct em28xx *dev)
748{
749 return em28xx_read_reg(dev, EM28XX_R20_YGAIN) & 0x1f;
750}
751
752static inline int em28xx_brightness_get(struct em28xx *dev)
753{
754 return em28xx_read_reg(dev, EM28XX_R21_YOFFSET);
755}
756
757static inline int em28xx_saturation_get(struct em28xx *dev)
758{
759 return em28xx_read_reg(dev, EM28XX_R22_UVGAIN) & 0x1f;
760}
761
762static inline int em28xx_u_balance_get(struct em28xx *dev)
763{
764 return em28xx_read_reg(dev, EM28XX_R23_UOFFSET);
765}
766
767static inline int em28xx_v_balance_get(struct em28xx *dev)
768{
769 return em28xx_read_reg(dev, EM28XX_R24_VOFFSET);
770}
771
772static inline int em28xx_gamma_get(struct em28xx *dev)
773{
774 return em28xx_read_reg(dev, EM28XX_R14_GAMMA) & 0x3f;
775}
776
777static inline int em28xx_contrast_set(struct em28xx *dev, s32 val)
778{
779 u8 tmp = (u8) val;
780 return em28xx_write_regs(dev, EM28XX_R20_YGAIN, &tmp, 1);
781}
782
783static inline int em28xx_brightness_set(struct em28xx *dev, s32 val)
784{
785 u8 tmp = (u8) val;
786 return em28xx_write_regs(dev, EM28XX_R21_YOFFSET, &tmp, 1);
787}
788
789static inline int em28xx_saturation_set(struct em28xx *dev, s32 val)
790{
791 u8 tmp = (u8) val;
792 return em28xx_write_regs(dev, EM28XX_R22_UVGAIN, &tmp, 1);
793}
794
795static inline int em28xx_u_balance_set(struct em28xx *dev, s32 val)
796{
797 u8 tmp = (u8) val;
798 return em28xx_write_regs(dev, EM28XX_R23_UOFFSET, &tmp, 1);
799}
800
801static inline int em28xx_v_balance_set(struct em28xx *dev, s32 val)
802{
803 u8 tmp = (u8) val;
804 return em28xx_write_regs(dev, EM28XX_R24_VOFFSET, &tmp, 1);
805}
806
807static inline int em28xx_gamma_set(struct em28xx *dev, s32 val)
808{
809 u8 tmp = (u8) val;
810 return em28xx_write_regs(dev, EM28XX_R14_GAMMA, &tmp, 1);
811}
812
813/*FIXME: maxw should be dependent of alt mode */ 747/*FIXME: maxw should be dependent of alt mode */
814static inline unsigned int norm_maxw(struct em28xx *dev) 748static inline unsigned int norm_maxw(struct em28xx *dev)
815{ 749{