summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6656/power.h
diff options
context:
space:
mode:
authorOscar Carter <oscar.carter@gmx.com>2020-04-25 15:42:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-28 14:16:49 +0200
commit81969fd8abc104d0288837409606c4abf527e224 (patch)
tree7bcffc818c047075963a3e71c9569fff49592342 /drivers/staging/vt6656/power.h
parent628cbd971a927abe6388d44320e351c337b331e4 (diff)
staging: vt6656: Check the return value of vnt_control_out_* calls
Check the return value of vnt_control_out_* function calls. When necessary modify the function prototype to be able to return the new checked error code. It's safe to modify all the function prototypes without fix the call because the only change is the return value from void to int. If before the call didn't check the return value, now neither. Signed-off-by: Oscar Carter <oscar.carter@gmx.com> Link: https://lore.kernel.org/r/20200425134257.4502-2-oscar.carter@gmx.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/power.h')
-rw-r--r--drivers/staging/vt6656/power.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/power.h b/drivers/staging/vt6656/power.h
index 58755ae16e5a..160872026db3 100644
--- a/drivers/staging/vt6656/power.h
+++ b/drivers/staging/vt6656/power.h
@@ -18,7 +18,7 @@
#define C_PWBT 1000 /* micro sec. power up before TBTT */
-void vnt_disable_power_saving(struct vnt_private *priv);
+int vnt_disable_power_saving(struct vnt_private *priv);
void vnt_enable_power_saving(struct vnt_private *priv, u16 listen_interval);
int vnt_next_tbtt_wakeup(struct vnt_private *priv);