[PATCH 5/8] Staging: gpib: Updated return type for `ines_request_system_control`

From: Thomas Andreatta
Date: Thu May 01 2025 - 17:32:26 EST


Updated the functions used by ines_request_system_control to return int.
Currently there's no possible return errors in the functions due to them
being former void function, for this reason they all return success (0).

Signed-off-by: Thomas Andreatta <thomas.andreatta2000@xxxxxxxxx>
---
drivers/staging/gpib/ines/ines_gpib.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/gpib/ines/ines_gpib.c b/drivers/staging/gpib/ines/ines_gpib.c
index d93eb05dab90..2ca1b8659ab4 100644
--- a/drivers/staging/gpib/ines/ines_gpib.c
+++ b/drivers/staging/gpib/ines/ines_gpib.c
@@ -441,11 +441,12 @@ int ines_go_to_standby(struct gpib_board *board)
return nec7210_go_to_standby(board, &priv->nec7210_priv);
}

-void ines_request_system_control(struct gpib_board *board, int request_control)
+int ines_request_system_control(struct gpib_board *board, int request_control)
{
struct ines_priv *priv = board->private_data;

nec7210_request_system_control(board, &priv->nec7210_priv, request_control);
+ return 0;
}

void ines_interface_clear(struct gpib_board *board, int assert)
--
2.34.1