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

staging: wfx: change the field chip_frozen into a boolean

The field chip_frozen is declared as an integer, but it is only used as
a boolean. So, convert it into a boolean.
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200427134031.323403-3-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7508f5d9
...@@ -316,7 +316,7 @@ static int hif_exception_indication(struct wfx_dev *wdev, ...@@ -316,7 +316,7 @@ static int hif_exception_indication(struct wfx_dev *wdev,
dev_err(wdev->dev, "firmware exception\n"); dev_err(wdev->dev, "firmware exception\n");
print_hex_dump_bytes("Dump: ", DUMP_PREFIX_NONE, buf, len); print_hex_dump_bytes("Dump: ", DUMP_PREFIX_NONE, buf, len);
wdev->chip_frozen = 1; wdev->chip_frozen = true;
return -1; return -1;
} }
......
...@@ -91,7 +91,7 @@ int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request, void *reply, ...@@ -91,7 +91,7 @@ int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request, void *reply,
if (!ret) { if (!ret) {
dev_err(wdev->dev, "chip did not answer\n"); dev_err(wdev->dev, "chip did not answer\n");
wfx_pending_dump_old_frames(wdev, 3000); wfx_pending_dump_old_frames(wdev, 3000);
wdev->chip_frozen = 1; wdev->chip_frozen = true;
reinit_completion(&wdev->hif_cmd.done); reinit_completion(&wdev->hif_cmd.done);
ret = -ETIMEDOUT; ret = -ETIMEDOUT;
} else { } else {
......
...@@ -52,7 +52,7 @@ void wfx_tx_flush(struct wfx_dev *wdev) ...@@ -52,7 +52,7 @@ void wfx_tx_flush(struct wfx_dev *wdev)
wdev->hif.tx_buffers_used); wdev->hif.tx_buffers_used);
wfx_pending_dump_old_frames(wdev, 3000); wfx_pending_dump_old_frames(wdev, 3000);
// FIXME: drop pending frames here // FIXME: drop pending frames here
wdev->chip_frozen = 1; wdev->chip_frozen = true;
} }
mutex_unlock(&wdev->hif_cmd.lock); mutex_unlock(&wdev->hif_cmd.lock);
wfx_tx_unlock(wdev); wfx_tx_unlock(wdev);
......
...@@ -45,7 +45,7 @@ struct wfx_dev { ...@@ -45,7 +45,7 @@ struct wfx_dev {
struct hif_ind_startup hw_caps; struct hif_ind_startup hw_caps;
struct wfx_hif hif; struct wfx_hif hif;
struct sl_context sl; struct sl_context sl;
int chip_frozen; bool chip_frozen;
struct mutex conf_mutex; struct mutex conf_mutex;
struct wfx_hif_cmd hif_cmd; struct wfx_hif_cmd hif_cmd;
......
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