From 8bea96efa7c0c57dc0c9ec4518ed61e3d5e9261c Mon Sep 17 00:00:00 2001 From: M Chetan Kumar Date: Tue, 21 Sep 2021 22:17:36 +0530 Subject: net: wwan: iosm: fw flashing and cd improvements 1> Function comments moved to .c file. 2> Use literals in return to improve readability. 3> Do error handling check instead of success check. 4> Redundant ret assignment removed. Signed-off-by: M Chetan Kumar Signed-off-by: David S. Miller --- drivers/net/wwan/iosm/iosm_ipc_devlink.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'drivers/net/wwan/iosm/iosm_ipc_devlink.h') diff --git a/drivers/net/wwan/iosm/iosm_ipc_devlink.h b/drivers/net/wwan/iosm/iosm_ipc_devlink.h index 392735080cb3..fa2b388a2f8a 100644 --- a/drivers/net/wwan/iosm/iosm_ipc_devlink.h +++ b/drivers/net/wwan/iosm/iosm_ipc_devlink.h @@ -180,28 +180,10 @@ struct iosm_rpsi_cmd { __le16 crc; }; -/** - * ipc_devlink_init - To initialize the devlink to IOSM driver - * @ipc_imem: Pointer to struct iosm_imem - * - * Returns: Pointer to iosm_devlink on success and NULL on failure - */ struct iosm_devlink *ipc_devlink_init(struct iosm_imem *ipc_imem); -/** - * ipc_devlink_deinit - To unintialize the devlink from IOSM driver. - * @ipc_devlink: Devlink instance - */ void ipc_devlink_deinit(struct iosm_devlink *ipc_devlink); -/** - * ipc_devlink_send_cmd - Send command to Modem - * @ipc_devlink: Pointer to struct iosm_devlink - * @cmd: Command to be sent to modem - * @entry: Command entry number - * - * Returns: 0 on success and failure value on error - */ int ipc_devlink_send_cmd(struct iosm_devlink *ipc_devlink, u16 cmd, u32 entry); #endif /* _IOSM_IPC_DEVLINK_H */ -- cgit