diff options
author | Xi Wang <xi.wang@gmail.com> | 2011-12-02 04:01:12 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-30 14:01:38 -0500 |
commit | d24674c60b6fe790a274d4936bcdc8c482bbd9fe (patch) | |
tree | 2fab29e7b61611bc9b1e82d0dcff6182f5a8b7f3 /drivers/media/radio/wl128x/fmdrv_rx.h | |
parent | a61278037b57b1d75467dcfeb255584d5f11743d (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.h | 50 |
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 | ||
25 | u32 fm_rx_set_freq(struct fmdev *, u32); | 25 | int fm_rx_set_freq(struct fmdev *, u32); |
26 | u32 fm_rx_set_mute_mode(struct fmdev *, u8); | 26 | int fm_rx_set_mute_mode(struct fmdev *, u8); |
27 | u32 fm_rx_set_stereo_mono(struct fmdev *, u16); | 27 | int fm_rx_set_stereo_mono(struct fmdev *, u16); |
28 | u32 fm_rx_set_rds_mode(struct fmdev *, u8); | 28 | int fm_rx_set_rds_mode(struct fmdev *, u8); |
29 | u32 fm_rx_set_rds_system(struct fmdev *, u8); | 29 | int fm_rx_set_rds_system(struct fmdev *, u8); |
30 | u32 fm_rx_set_volume(struct fmdev *, u16); | 30 | int fm_rx_set_volume(struct fmdev *, u16); |
31 | u32 fm_rx_set_rssi_threshold(struct fmdev *, short); | 31 | int fm_rx_set_rssi_threshold(struct fmdev *, short); |
32 | u32 fm_rx_set_region(struct fmdev *, u8); | 32 | int fm_rx_set_region(struct fmdev *, u8); |
33 | u32 fm_rx_set_rfdepend_softmute(struct fmdev *, u8); | 33 | int fm_rx_set_rfdepend_softmute(struct fmdev *, u8); |
34 | u32 fm_rx_set_deemphasis_mode(struct fmdev *, u16); | 34 | int fm_rx_set_deemphasis_mode(struct fmdev *, u16); |
35 | u32 fm_rx_set_af_switch(struct fmdev *, u8); | 35 | int fm_rx_set_af_switch(struct fmdev *, u8); |
36 | 36 | ||
37 | void fm_rx_reset_rds_cache(struct fmdev *); | 37 | void fm_rx_reset_rds_cache(struct fmdev *); |
38 | void fm_rx_reset_station_info(struct fmdev *); | 38 | void fm_rx_reset_station_info(struct fmdev *); |
39 | 39 | ||
40 | u32 fm_rx_seek(struct fmdev *, u32, u32, u32); | 40 | int fm_rx_seek(struct fmdev *, u32, u32, u32); |
41 | 41 | ||
42 | u32 fm_rx_get_rds_mode(struct fmdev *, u8 *); | 42 | int fm_rx_get_rds_mode(struct fmdev *, u8 *); |
43 | u32 fm_rx_get_rds_system(struct fmdev *, u8 *); | 43 | int fm_rx_get_rds_system(struct fmdev *, u8 *); |
44 | u32 fm_rx_get_mute_mode(struct fmdev *, u8 *); | 44 | int fm_rx_get_mute_mode(struct fmdev *, u8 *); |
45 | u32 fm_rx_get_volume(struct fmdev *, u16 *); | 45 | int fm_rx_get_volume(struct fmdev *, u16 *); |
46 | u32 fm_rx_get_band_freq_range(struct fmdev *, | 46 | int fm_rx_get_band_freq_range(struct fmdev *, |
47 | u32 *, u32 *); | 47 | u32 *, u32 *); |
48 | u32 fm_rx_get_stereo_mono(struct fmdev *, u16 *); | 48 | int fm_rx_get_stereo_mono(struct fmdev *, u16 *); |
49 | u32 fm_rx_get_rssi_level(struct fmdev *, u16 *); | 49 | int fm_rx_get_rssi_level(struct fmdev *, u16 *); |
50 | u32 fm_rx_get_rssi_threshold(struct fmdev *, short *); | 50 | int fm_rx_get_rssi_threshold(struct fmdev *, short *); |
51 | u32 fm_rx_get_rfdepend_softmute(struct fmdev *, u8 *); | 51 | int fm_rx_get_rfdepend_softmute(struct fmdev *, u8 *); |
52 | u32 fm_rx_get_deemph_mode(struct fmdev *, u16 *); | 52 | int fm_rx_get_deemph_mode(struct fmdev *, u16 *); |
53 | u32 fm_rx_get_af_switch(struct fmdev *, u8 *); | 53 | int fm_rx_get_af_switch(struct fmdev *, u8 *); |
54 | void fm_rx_get_region(struct fmdev *, u8 *); | 54 | void fm_rx_get_region(struct fmdev *, u8 *); |
55 | 55 | ||
56 | u32 fm_rx_set_chanl_spacing(struct fmdev *, u8); | 56 | int fm_rx_set_chanl_spacing(struct fmdev *, u8); |
57 | u32 fm_rx_get_chanl_spacing(struct fmdev *, u8 *); | 57 | int fm_rx_get_chanl_spacing(struct fmdev *, u8 *); |
58 | #endif | 58 | #endif |
59 | 59 | ||