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_flash.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_flash.h')
-rw-r--r-- | drivers/net/wwan/iosm/iosm_ipc_flash.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/drivers/net/wwan/iosm/iosm_ipc_flash.h b/drivers/net/wwan/iosm/iosm_ipc_flash.h index aee848927228..132d59d60fbe 100644 --- a/drivers/net/wwan/iosm/iosm_ipc_flash.h +++ b/drivers/net/wwan/iosm/iosm_ipc_flash.h @@ -211,61 +211,19 @@ struct iosm_flash_data { __le32 msg_length; }; -/** - * ipc_flash_boot_psi - Inject PSI image - * @ipc_devlink: Pointer to devlink structure - * @fw: FW image - * - * Returns: 0 on success and failure value on error - */ int ipc_flash_boot_psi(struct iosm_devlink *ipc_devlink, const struct firmware *fw); -/** - * ipc_flash_boot_ebl - Inject EBL image - * @ipc_devlink: Pointer to devlink structure - * @fw: FW image - * - * Returns: 0 on success and failure value on error - */ int ipc_flash_boot_ebl(struct iosm_devlink *ipc_devlink, const struct firmware *fw); -/** - * ipc_flash_boot_set_capabilities - Set modem bool capabilities in flash - * @ipc_devlink: Pointer to devlink structure - * @mdm_rsp: Pointer to modem response buffer - * - * Returns: 0 on success and failure value on error - */ int ipc_flash_boot_set_capabilities(struct iosm_devlink *ipc_devlink, u8 *mdm_rsp); -/** - * ipc_flash_link_establish - Flash link establishment - * @ipc_imem: Pointer to struct iosm_imem - * - * Returns: 0 on success and failure value on error - */ int ipc_flash_link_establish(struct iosm_imem *ipc_imem); -/** - * ipc_flash_read_swid - Get swid during flash phase - * @ipc_devlink: Pointer to devlink structure - * @mdm_rsp: Pointer to modem response buffer - * - * Returns: 0 on success and failure value on error - */ int ipc_flash_read_swid(struct iosm_devlink *ipc_devlink, u8 *mdm_rsp); -/** - * ipc_flash_send_fls - Inject Modem subsystem fls file to device - * @ipc_devlink: Pointer to devlink structure - * @fw: FW image - * @mdm_rsp: Pointer to modem response buffer - * - * Returns: 0 on success and failure value on error - */ int ipc_flash_send_fls(struct iosm_devlink *ipc_devlink, const struct firmware *fw, u8 *mdm_rsp); #endif |