mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 04:44:03 +00:00
Commit3ba11e684d("pinctrl: pinconf-generic: print hex value") unconditionally switched to printing hex values in pinconf_generic_dump_one(). However, if a dump format is registered for the dumped pin, the hex value is printed as well. This hex value does not necessarily correspond 1:1 with the hardware register value (as noted by commit3ba11e684d("pinctrl: pinconf-generic: print hex value")). As a result, user-facing output may include information like: output drive strength (0x100 uA). To address this, check if a dump format is registered for the dumped property, and print the unsigned value instead when applicable. Fixes:3ba11e684d("pinctrl: pinconf-generic: print hex value") Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>