aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2014-12-21 07:56:49 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-01-27 06:56:20 -0500
commit58fc0461f6c2e5684177f4616b1e60e36c0237e4 (patch)
tree6682f1d2904bcf1f75f3448f229e4fa873cda2d1
parent4c036c4ffa12e195fd09c04a0bee16afff19c55b (diff)
[media] media: radio: wl128x: fmdrv_rx.c: Remove unused function
Remove the function fm_rx_get_rds_system() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--drivers/media/radio/wl128x/fmdrv_rx.c16
-rw-r--r--drivers/media/radio/wl128x/fmdrv_rx.h1
2 files changed, 0 insertions, 17 deletions
diff --git a/drivers/media/radio/wl128x/fmdrv_rx.c b/drivers/media/radio/wl128x/fmdrv_rx.c
index 09632cb26cb6..cfaeb2417fbb 100644
--- a/drivers/media/radio/wl128x/fmdrv_rx.c
+++ b/drivers/media/radio/wl128x/fmdrv_rx.c
@@ -785,22 +785,6 @@ int fm_rx_set_rds_system(struct fmdev *fmdev, u8 rds_mode)
785 return 0; 785 return 0;
786} 786}
787 787
788/* Returns current RDS operation mode */
789int fm_rx_get_rds_system(struct fmdev *fmdev, u8 *rds_mode)
790{
791 if (fmdev->curr_fmmode != FM_MODE_RX)
792 return -EPERM;
793
794 if (rds_mode == NULL) {
795 fmerr("Invalid memory\n");
796 return -ENOMEM;
797 }
798
799 *rds_mode = fmdev->rx.rds_mode;
800
801 return 0;
802}
803
804/* Configures Alternate Frequency switch mode */ 788/* Configures Alternate Frequency switch mode */
805int fm_rx_set_af_switch(struct fmdev *fmdev, u8 af_mode) 789int fm_rx_set_af_switch(struct fmdev *fmdev, u8 af_mode)
806{ 790{
diff --git a/drivers/media/radio/wl128x/fmdrv_rx.h b/drivers/media/radio/wl128x/fmdrv_rx.h
index 32add81f8d87..23922188882f 100644
--- a/drivers/media/radio/wl128x/fmdrv_rx.h
+++ b/drivers/media/radio/wl128x/fmdrv_rx.h
@@ -40,7 +40,6 @@ void fm_rx_reset_station_info(struct fmdev *);
40int fm_rx_seek(struct fmdev *, u32, u32, u32); 40int fm_rx_seek(struct fmdev *, u32, u32, u32);
41 41
42int fm_rx_get_rds_mode(struct fmdev *, u8 *); 42int fm_rx_get_rds_mode(struct fmdev *, u8 *);
43int fm_rx_get_rds_system(struct fmdev *, u8 *);
44int fm_rx_get_mute_mode(struct fmdev *, u8 *); 43int fm_rx_get_mute_mode(struct fmdev *, u8 *);
45int fm_rx_get_volume(struct fmdev *, u16 *); 44int fm_rx_get_volume(struct fmdev *, u16 *);
46int fm_rx_get_band_freq_range(struct fmdev *, 45int fm_rx_get_band_freq_range(struct fmdev *,