diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2019-07-09 17:14:55 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-09-05 17:42:29 +0200 |
commit | 8f72e98e9c9182732bb26ef43750de3c382b2221 (patch) | |
tree | 92c549a8eb1d5dc3f722aacb9e73d197e43b3dad /drivers/net/wireless/mediatek/mt76/mt76.h | |
parent | b229bf7d30d67c2640073b63ad8afff503630578 (diff) | |
download | lwn-8f72e98e9c9182732bb26ef43750de3c382b2221.tar.gz lwn-8f72e98e9c9182732bb26ef43750de3c382b2221.zip |
mt76: usb: remove unneeded {put,get}_unaligned
Compiler give us guarantees on variables alignment, so use
an variable as buffer when read/write registers and remove
unneeded {put,get}_unaligned.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76.h b/drivers/net/wireless/mediatek/mt76/mt76.h index 989386ecb5e4..44299e7b3196 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76.h +++ b/drivers/net/wireless/mediatek/mt76/mt76.h @@ -390,7 +390,10 @@ enum mt76u_out_ep { #define MCU_RESP_URB_SIZE 1024 struct mt76_usb { struct mutex usb_ctrl_mtx; - u8 data[32]; + union { + u8 data[32]; + __le32 reg_val; + }; struct tasklet_struct rx_tasklet; struct delayed_work stat_work; |