Commit 3d5c42c9 authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman

staging: wfx: drop useless struct hif_reset_flags

Struct hif_reset_flags has no reason to exist. Drop it and simplify
access to struct hif_req_reset.
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200907101521.66082-11-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 85da2577
...@@ -60,15 +60,15 @@ enum hif_indications_ids { ...@@ -60,15 +60,15 @@ enum hif_indications_ids {
HIF_IND_ID_EVENT = 0x85 HIF_IND_ID_EVENT = 0x85
}; };
struct hif_reset_flags { struct hif_req_reset {
u8 reset_stat:1; u8 reset_stat:1;
u8 reset_all_int:1; u8 reset_all_int:1;
u8 reserved1:6; u8 reserved1:6;
u8 reserved2[3]; u8 reserved2[3];
} __packed; } __packed;
struct hif_req_reset { struct hif_cnf_reset {
struct hif_reset_flags reset_flags; __le32 status;
} __packed; } __packed;
struct hif_req_read_mib { struct hif_req_read_mib {
......
...@@ -170,7 +170,7 @@ int hif_reset(struct wfx_vif *wvif, bool reset_stat) ...@@ -170,7 +170,7 @@ int hif_reset(struct wfx_vif *wvif, bool reset_stat)
if (!hif) if (!hif)
return -ENOMEM; return -ENOMEM;
body->reset_flags.reset_stat = reset_stat; body->reset_stat = reset_stat;
wfx_fill_header(hif, wvif->id, HIF_REQ_ID_RESET, sizeof(*body)); wfx_fill_header(hif, wvif->id, HIF_REQ_ID_RESET, sizeof(*body));
ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false); ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false);
kfree(hif); kfree(hif);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment