aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/rf.h
diff options
context:
space:
mode:
authorQuentin Deslandes <quentin.deslandes@itdev.co.uk>2019-05-20 16:39:02 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-21 08:25:03 +0200
commit7156f7d9c38799ebb5d9d92e90207ff227ec4ade (patch)
tree555193f62ba092e31eb19034279b2f369ad8c3ad /drivers/staging/vt6656/rf.h
parentstaging: vt6656: clean function's error path in usbpipe.c (diff)
downloadlinux-dev-7156f7d9c38799ebb5d9d92e90207ff227ec4ade.tar.xz
linux-dev-7156f7d9c38799ebb5d9d92e90207ff227ec4ade.zip
staging: vt6656: avoid discarding called function's return code
Change some of the driver's functions in order to handle error codes instead of discarding them. These function now returns 0 on success and a negative errno value on error. Signed-off-by: Quentin Deslandes <quentin.deslandes@itdev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/rf.h')
-rw-r--r--drivers/staging/vt6656/rf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/rf.h b/drivers/staging/vt6656/rf.h
index 6103117d6df5..7494546d71b8 100644
--- a/drivers/staging/vt6656/rf.h
+++ b/drivers/staging/vt6656/rf.h
@@ -44,6 +44,6 @@ int vnt_rf_write_embedded(struct vnt_private *priv, u32 data);
int vnt_rf_setpower(struct vnt_private *priv, u32 rate, u32 channel);
int vnt_rf_set_txpower(struct vnt_private *priv, u8 power, u32 rate);
void vnt_rf_rssi_to_dbm(struct vnt_private *priv, u8 rssi, long *dbm);
-void vnt_rf_table_download(struct vnt_private *priv);
+int vnt_rf_table_download(struct vnt_private *priv);
#endif /* __RF_H__ */