diff options
| author | Crescent Hsieh <crescentcy.hsieh@moxa.com> | 2026-08-11 14:04:57 +0800 |
|---|---|---|
| committer | Johan Hovold <johan@kernel.org> | 2026-10-15 10:41:20 +0200 |
| commit | 4707336330a423191fc28ead250b1963d35719c5 (patch) | |
| tree | 223c5578ab9b49fcf16e303706cd29b97687f5fa /include/linux/reset-controller.h | |
| parent | b88f018678f3565d1773b0ea61583eac1398a599 (diff) | |
USB: serial: mxuport: clean up firmware version handling
Add a small helper for parsing firmware versions and use it for the
firmware image. This avoids open-coded firmware image offsets in
probe() and retains the existing image-size validation before reading
the version bytes.
Keep the existing version comparison policy unchanged, but store the
version components explicitly so that the version can be printed
without unpacking a raw integer.
Print the firmware version fields in decimal, as these fields represent
readable version components rather than hexadecimal values.
Signed-off-by: Crescent Hsieh <crescentcy.hsieh@moxa.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'include/linux/reset-controller.h')
0 files changed, 0 insertions, 0 deletions
