wifi: rtw89: use struct to parse firmware header
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 16 Jun 2023 06:06:01 +0000 (14:06 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 21 Jun 2023 09:50:21 +0000 (12:50 +0300)
commitf072eb39e4f2c1df60d8641f6260f11a42366abc
tree366c941d5e27989063fbb72932e37ef5383c2f92
parentb4a283fb6227fa01cdfb4bec891ded3e32b4a287
wifi: rtw89: use struct to parse firmware header

A firmware contains basic header, sections and optional dynamic header.
Define them by a struct, so it will be easier to understand the layout,
and also simply access these elements.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230616060601.28460-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/fw.h