[PATCH 6.12 025/175] HID: core: Harden s32ton() against conversion to 0 bits