aboutsummaryrefslogtreecommitdiff
path: root/hid-tminit
diff options
context:
space:
mode:
authorKai Krakow <kai@kaishome.de>2026-08-08 22:36:04 +0200
committerKai Krakow <kai@kaishome.de>2026-08-09 00:20:00 +0200
commitf014217288927246f92ee876afbbf9de8ba707be (patch)
tree2f633faa5eec53b2441650f5a243b90cd77df4ac /hid-tminit
parent8187920ed261c7024826f8204cc7bea45153a3da (diff)
downloadhid-tmff2-f014217288927246f92ee876afbbf9de8ba707be.tar.gz
hid-tmff2-f014217288927246f92ee876afbbf9de8ba707be.zip
use an unsigned 16-bit type for gain
+ Gain is documented and sent to the hardware as a value in the range 0 to 65535, but the module parameter and sysfs attribute accept wider integer values. Store gain as a u16 and parse sysfs writes with kstrtou16 so out-of-range values are rejected instead of being silently changed. + This constrains only the configured value. Calculations combining gain values still require a wider intermediate to cover the product of two full-range 16-bit values.
Diffstat (limited to 'hid-tminit')
0 files changed, 0 insertions, 0 deletions