aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/wl128x/fmdrv_rx.h
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2011-12-02 04:01:12 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-30 14:01:38 -0500
commitd24674c60b6fe790a274d4936bcdc8c482bbd9fe (patch)
tree2fab29e7b61611bc9b1e82d0dcff6182f5a8b7f3 /drivers/media/radio/wl128x/fmdrv_rx.h
parenta61278037b57b1d75467dcfeb255584d5f11743d (diff)
[media] wl128x: fmdrv_rx: fix signedness bugs
Message-Id: <1322820073-19347-3-git-send-email-xi.wang@gmail.com> The error handling with (ret < 0) didn't work where ret is a u32. Use int instead. To be consistent we also change the functions to return an int. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/wl128x/fmdrv_rx.h')
-rw-r--r--drivers/media/radio/wl128x/fmdrv_rx.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/media/radio/wl128x/fmdrv_rx.h b/drivers/media/radio/wl128x/fmdrv_rx.h
index 329e62f6be76..32add81f8d87 100644
--- a/drivers/media/radio/wl128x/fmdrv_rx.h
+++ b/drivers/media/radio/wl128x/fmdrv_rx.h
@@ -22,38 +22,38 @@
22#ifndef _FMDRV_RX_H 22#ifndef _FMDRV_RX_H
23#define _FMDRV_RX_H 23#define _FMDRV_RX_H
24 24
25u32 fm_rx_set_freq(struct fmdev *, u32); 25int fm_rx_set_freq(struct fmdev *, u32);
26u32 fm_rx_set_mute_mode(struct fmdev *, u8); 26int fm_rx_set_mute_mode(struct fmdev *, u8);
27u32 fm_rx_set_stereo_mono(struct fmdev *, u16); 27int fm_rx_set_stereo_mono(struct fmdev *, u16);
28u32 fm_rx_set_rds_mode(struct fmdev *, u8); 28int fm_rx_set_rds_mode(struct fmdev *, u8);
29u32 fm_rx_set_rds_system(struct fmdev *, u8); 29int fm_rx_set_rds_system(struct fmdev *, u8);
30u32 fm_rx_set_volume(struct fmdev *, u16); 30int fm_rx_set_volume(struct fmdev *, u16);
31u32 fm_rx_set_rssi_threshold(struct fmdev *, short); 31int fm_rx_set_rssi_threshold(struct fmdev *, short);
32u32 fm_rx_set_region(struct fmdev *, u8); 32int fm_rx_set_region(struct fmdev *, u8);
33u32 fm_rx_set_rfdepend_softmute(struct fmdev *, u8); 33int fm_rx_set_rfdepend_softmute(struct fmdev *, u8);
34u32 fm_rx_set_deemphasis_mode(struct fmdev *, u16); 34int fm_rx_set_deemphasis_mode(struct fmdev *, u16);
35u32 fm_rx_set_af_switch(struct fmdev *, u8); 35int fm_rx_set_af_switch(struct fmdev *, u8);
36 36
37void fm_rx_reset_rds_cache(struct fmdev *); 37void fm_rx_reset_rds_cache(struct fmdev *);
38void fm_rx_reset_station_info(struct fmdev *); 38void fm_rx_reset_station_info(struct fmdev *);
39 39
40u32 fm_rx_seek(struct fmdev *, u32, u32, u32); 40int fm_rx_seek(struct fmdev *, u32, u32, u32);
41 41
42u32 fm_rx_get_rds_mode(struct fmdev *, u8 *); 42int fm_rx_get_rds_mode(struct fmdev *, u8 *);
43u32 fm_rx_get_rds_system(struct fmdev *, u8 *); 43int fm_rx_get_rds_system(struct fmdev *, u8 *);
44u32 fm_rx_get_mute_mode(struct fmdev *, u8 *); 44int fm_rx_get_mute_mode(struct fmdev *, u8 *);
45u32 fm_rx_get_volume(struct fmdev *, u16 *); 45int fm_rx_get_volume(struct fmdev *, u16 *);
46u32 fm_rx_get_band_freq_range(struct fmdev *, 46int fm_rx_get_band_freq_range(struct fmdev *,
47 u32 *, u32 *); 47 u32 *, u32 *);
48u32 fm_rx_get_stereo_mono(struct fmdev *, u16 *); 48int fm_rx_get_stereo_mono(struct fmdev *, u16 *);
49u32 fm_rx_get_rssi_level(struct fmdev *, u16 *); 49int fm_rx_get_rssi_level(struct fmdev *, u16 *);
50u32 fm_rx_get_rssi_threshold(struct fmdev *, short *); 50int fm_rx_get_rssi_threshold(struct fmdev *, short *);
51u32 fm_rx_get_rfdepend_softmute(struct fmdev *, u8 *); 51int fm_rx_get_rfdepend_softmute(struct fmdev *, u8 *);
52u32 fm_rx_get_deemph_mode(struct fmdev *, u16 *); 52int fm_rx_get_deemph_mode(struct fmdev *, u16 *);
53u32 fm_rx_get_af_switch(struct fmdev *, u8 *); 53int fm_rx_get_af_switch(struct fmdev *, u8 *);
54void fm_rx_get_region(struct fmdev *, u8 *); 54void fm_rx_get_region(struct fmdev *, u8 *);
55 55
56u32 fm_rx_set_chanl_spacing(struct fmdev *, u8); 56int fm_rx_set_chanl_spacing(struct fmdev *, u8);
57u32 fm_rx_get_chanl_spacing(struct fmdev *, u8 *); 57int fm_rx_get_chanl_spacing(struct fmdev *, u8 *);
58#endif 58#endif
59 59