aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/wl128x/fmdrv_common.h
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2011-12-02 04:01:11 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-30 14:00:56 -0500
commita61278037b57b1d75467dcfeb255584d5f11743d (patch)
treed07d4924dda3b4de16e5e6a1abbd5a2d79cca33d /drivers/media/radio/wl128x/fmdrv_common.h
parent27d3e366091b13c26d5d996709fd9d99858455eb (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.h28
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 */
371u32 fmc_prepare(struct fmdev *); 371int fmc_prepare(struct fmdev *);
372u32 fmc_release(struct fmdev *); 372int fmc_release(struct fmdev *);
373 373
374void fmc_update_region_info(struct fmdev *, u8); 374void fmc_update_region_info(struct fmdev *, u8);
375u32 fmc_send_cmd(struct fmdev *, u8, u16, 375int fmc_send_cmd(struct fmdev *, u8, u16,
376 void *, unsigned int, void *, int *); 376 void *, unsigned int, void *, int *);
377u32 fmc_is_rds_data_available(struct fmdev *, struct file *, 377int fmc_is_rds_data_available(struct fmdev *, struct file *,
378 struct poll_table_struct *); 378 struct poll_table_struct *);
379u32 fmc_transfer_rds_from_internal_buff(struct fmdev *, struct file *, 379int fmc_transfer_rds_from_internal_buff(struct fmdev *, struct file *,
380 u8 __user *, size_t); 380 u8 __user *, size_t);
381 381
382u32 fmc_set_freq(struct fmdev *, u32); 382int fmc_set_freq(struct fmdev *, u32);
383u32 fmc_set_mode(struct fmdev *, u8); 383int fmc_set_mode(struct fmdev *, u8);
384u32 fmc_set_region(struct fmdev *, u8); 384int fmc_set_region(struct fmdev *, u8);
385u32 fmc_set_mute_mode(struct fmdev *, u8); 385int fmc_set_mute_mode(struct fmdev *, u8);
386u32 fmc_set_stereo_mono(struct fmdev *, u16); 386int fmc_set_stereo_mono(struct fmdev *, u16);
387u32 fmc_set_rds_mode(struct fmdev *, u8); 387int fmc_set_rds_mode(struct fmdev *, u8);
388 388
389u32 fmc_get_freq(struct fmdev *, u32 *); 389int fmc_get_freq(struct fmdev *, u32 *);
390u32 fmc_get_region(struct fmdev *, u8 *); 390int fmc_get_region(struct fmdev *, u8 *);
391u32 fmc_get_mode(struct fmdev *, u8 *); 391int fmc_get_mode(struct fmdev *, u8 *);
392 392
393/* 393/*
394 * channel spacing 394 * channel spacing