summaryrefslogtreecommitdiff
path: root/include/linux/input
diff options
context:
space:
mode:
authorCrescent Hsieh <crescentcy.hsieh@moxa.com>2026-08-11 14:04:57 +0800
committerJohan Hovold <johan@kernel.org>2026-10-15 10:41:20 +0200
commit4707336330a423191fc28ead250b1963d35719c5 (patch)
tree223c5578ab9b49fcf16e303706cd29b97687f5fa /include/linux/input
parentb88f018678f3565d1773b0ea61583eac1398a599 (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/input')
0 files changed, 0 insertions, 0 deletions