diff options
author | Xi Wang <xi.wang@gmail.com> | 2011-12-02 04:01:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-30 14:00:56 -0500 |
commit | a61278037b57b1d75467dcfeb255584d5f11743d (patch) | |
tree | d07d4924dda3b4de16e5e6a1abbd5a2d79cca33d /drivers/media/radio/wl128x/fmdrv_common.h | |
parent | 27d3e366091b13c26d5d996709fd9d99858455eb (diff) |
[media] wl128x: fmdrv_common: fix signedness bugs
Message-Id: <1322820073-19347-2-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_common.h')
-rw-r--r-- | drivers/media/radio/wl128x/fmdrv_common.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/radio/wl128x/fmdrv_common.h b/drivers/media/radio/wl128x/fmdrv_common.h index aee243bb6630..d9b9c6cf83b4 100644 --- a/drivers/media/radio/wl128x/fmdrv_common.h +++ b/drivers/media/radio/wl128x/fmdrv_common.h | |||
@@ -368,27 +368,27 @@ struct fm_event_msg_hdr { | |||
368 | #define FM_TX_ANT_IMP_500 2 | 368 | #define FM_TX_ANT_IMP_500 2 |
369 | 369 | ||
370 | /* Functions exported by FM common sub-module */ | 370 | /* Functions exported by FM common sub-module */ |
371 | u32 fmc_prepare(struct fmdev *); | 371 | int fmc_prepare(struct fmdev *); |
372 | u32 fmc_release(struct fmdev *); | 372 | int fmc_release(struct fmdev *); |
373 | 373 | ||
374 | void fmc_update_region_info(struct fmdev *, u8); | 374 | void fmc_update_region_info(struct fmdev *, u8); |
375 | u32 fmc_send_cmd(struct fmdev *, u8, u16, | 375 | int fmc_send_cmd(struct fmdev *, u8, u16, |
376 | void *, unsigned int, void *, int *); | 376 | void *, unsigned int, void *, int *); |
377 | u32 fmc_is_rds_data_available(struct fmdev *, struct file *, | 377 | int fmc_is_rds_data_available(struct fmdev *, struct file *, |
378 | struct poll_table_struct *); | 378 | struct poll_table_struct *); |
379 | u32 fmc_transfer_rds_from_internal_buff(struct fmdev *, struct file *, | 379 | int fmc_transfer_rds_from_internal_buff(struct fmdev *, struct file *, |
380 | u8 __user *, size_t); | 380 | u8 __user *, size_t); |
381 | 381 | ||
382 | u32 fmc_set_freq(struct fmdev *, u32); | 382 | int fmc_set_freq(struct fmdev *, u32); |
383 | u32 fmc_set_mode(struct fmdev *, u8); | 383 | int fmc_set_mode(struct fmdev *, u8); |
384 | u32 fmc_set_region(struct fmdev *, u8); | 384 | int fmc_set_region(struct fmdev *, u8); |
385 | u32 fmc_set_mute_mode(struct fmdev *, u8); | 385 | int fmc_set_mute_mode(struct fmdev *, u8); |
386 | u32 fmc_set_stereo_mono(struct fmdev *, u16); | 386 | int fmc_set_stereo_mono(struct fmdev *, u16); |
387 | u32 fmc_set_rds_mode(struct fmdev *, u8); | 387 | int fmc_set_rds_mode(struct fmdev *, u8); |
388 | 388 | ||
389 | u32 fmc_get_freq(struct fmdev *, u32 *); | 389 | int fmc_get_freq(struct fmdev *, u32 *); |
390 | u32 fmc_get_region(struct fmdev *, u8 *); | 390 | int fmc_get_region(struct fmdev *, u8 *); |
391 | u32 fmc_get_mode(struct fmdev *, u8 *); | 391 | int fmc_get_mode(struct fmdev *, u8 *); |
392 | 392 | ||
393 | /* | 393 | /* |
394 | * channel spacing | 394 | * channel spacing |