summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/wl128x/fmdrv_tx.h
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2011-12-02 06:01:13 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-30 17:01:52 -0200
commit8cc20dd89c9ec807b169c8db42192377da470acc (patch)
tree239fc368684a57f517d5b615ad323fc23658c80e /drivers/media/radio/wl128x/fmdrv_tx.h
parentd24674c60b6fe790a274d4936bcdc8c482bbd9fe (diff)
downloadop-kernel-dev-8cc20dd89c9ec807b169c8db42192377da470acc.zip
op-kernel-dev-8cc20dd89c9ec807b169c8db42192377da470acc.tar.gz
[media] wl128x: fmdrv_tx: fix signedness bugs
Message-Id: <1322820073-19347-4-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_tx.h')
-rw-r--r--drivers/media/radio/wl128x/fmdrv_tx.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/radio/wl128x/fmdrv_tx.h b/drivers/media/radio/wl128x/fmdrv_tx.h
index e393a2b..11ae2e4 100644
--- a/drivers/media/radio/wl128x/fmdrv_tx.h
+++ b/drivers/media/radio/wl128x/fmdrv_tx.h
@@ -22,16 +22,16 @@
#ifndef _FMDRV_TX_H
#define _FMDRV_TX_H
-u32 fm_tx_set_freq(struct fmdev *, u32);
-u32 fm_tx_set_pwr_lvl(struct fmdev *, u8);
-u32 fm_tx_set_region(struct fmdev *, u8);
-u32 fm_tx_set_mute_mode(struct fmdev *, u8);
-u32 fm_tx_set_stereo_mono(struct fmdev *, u16);
-u32 fm_tx_set_rds_mode(struct fmdev *, u8);
-u32 fm_tx_set_radio_text(struct fmdev *, u8 *, u8);
-u32 fm_tx_set_af(struct fmdev *, u32);
-u32 fm_tx_set_preemph_filter(struct fmdev *, u32);
-u32 fm_tx_get_tune_cap_val(struct fmdev *);
+int fm_tx_set_freq(struct fmdev *, u32);
+int fm_tx_set_pwr_lvl(struct fmdev *, u8);
+int fm_tx_set_region(struct fmdev *, u8);
+int fm_tx_set_mute_mode(struct fmdev *, u8);
+int fm_tx_set_stereo_mono(struct fmdev *, u16);
+int fm_tx_set_rds_mode(struct fmdev *, u8);
+int fm_tx_set_radio_text(struct fmdev *, u8 *, u8);
+int fm_tx_set_af(struct fmdev *, u32);
+int fm_tx_set_preemph_filter(struct fmdev *, u32);
+int fm_tx_get_tune_cap_val(struct fmdev *);
#endif
OpenPOWER on IntegriCloud