diff options
| author | 2026-09-09 20:00:11 +0800 | |
|---|---|---|
| committer | 2026-10-14 14:38:13 -0400 | |
| commit | 8be5ec1f66df125af8b968a176c65344e3844a5f (patch) | |
| tree | 2f838e95ed2f01ff6d61b361a5a68cc071e6b4c2 /scripts/Makefile.thinlto | |
| parent | Bluetooth: btmtk: Improve BT firmware logging (diff) | |
Bluetooth: btmtk: Replace magic numbers with WMT packet flag enum
The flag field of a BTMTK_WMT_PATCH_DWNLD packet tells the device where
the packet sits in the download sequence, but both download loops write
the bare values 1, 2 and 3, so the reader has to infer the meaning from
the surrounding conditionals.
Add enum btmtk_wmt_pkt_flag and use it in btmtk_setup_firmware_79xx()
and btmtk_setup_firmware(). No functional change.
The other bare flag values in this driver belong to different WMT
opcodes (BTMTK_WMT_FUNC_CTRL, BTMTK_WMT_RST, BTMTK_WMT_SEMAPHORE and so
on), where the field means something else entirely, so they are left
alone.
Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Assisted-by: Claude:claude-opus-5
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
