staging: wfx: drop useless struct hif_reset_flags
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Mon, 7 Sep 2020 10:15:00 +0000 (12:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2020 07:23:02 +0000 (09:23 +0200)
Struct hif_reset_flags has no reason to exist. Drop it and simplify
access to struct hif_req_reset.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200907101521.66082-11-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/hif_api_cmd.h
drivers/staging/wfx/hif_tx.c

index c132d8e..3da736d 100644 (file)
@@ -60,15 +60,15 @@ enum hif_indications_ids {
        HIF_IND_ID_EVENT                = 0x85
 };
 
-struct hif_reset_flags {
+struct hif_req_reset {
        u8     reset_stat:1;
        u8     reset_all_int:1;
        u8     reserved1:6;
        u8     reserved2[3];
 } __packed;
 
-struct hif_req_reset {
-       struct hif_reset_flags reset_flags;
+struct hif_cnf_reset {
+       __le32 status;
 } __packed;
 
 struct hif_req_read_mib {
index f91b19d..8736eb4 100644 (file)
@@ -170,7 +170,7 @@ int hif_reset(struct wfx_vif *wvif, bool reset_stat)
 
        if (!hif)
                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));
        ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false);
        kfree(hif);