diff options
author | M Chetan Kumar <m.chetan.kumar@linux.intel.com> | 2021-09-21 19:47:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-22 16:23:33 +0300 |
commit | 8bea96efa7c0c57dc0c9ec4518ed61e3d5e9261c (patch) | |
tree | 8c8c530a903dea5bc10e3d930785b1461da66307 /drivers/net/wwan/iosm/iosm_ipc_devlink.h | |
parent | a5df6333f1a08380c3b94a02105482263711ed3a (diff) | |
download | linux-8bea96efa7c0c57dc0c9ec4518ed61e3d5e9261c.tar.xz |
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 <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_devlink.h')
-rw-r--r-- | drivers/net/wwan/iosm/iosm_ipc_devlink.h | 18 |
1 files changed, 0 insertions, 18 deletions
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 */ |