Commit 63907290 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau

mt76: mt7915: fix endianness in mt7915_rf_regval_get

Fix the following sparse warning in mt7915_rf_regval_get routine:
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:979:16: warning: cast to restricted __le32

Fixes: 0a17329a ("mt76: mt7915: add debugfs knob for RF registers read/write")
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 58b6259d
...@@ -976,7 +976,7 @@ mt7915_rf_regval_get(void *data, u64 *val) ...@@ -976,7 +976,7 @@ mt7915_rf_regval_get(void *data, u64 *val)
if (ret) if (ret)
return ret; return ret;
*val = le32_to_cpu(regval); *val = regval;
return 0; return 0;
} }
......
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