aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorJohn Keeping <jkeeping@inmusicbrands.com>2024-07-31 10:33:09 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-07-31 10:20:43 -0700
commit684890a0185dabf5920c43b639133adc4c2632cf (patch)
treec3156da0fd385f8323f8359b83c181672c85d720 /lib/debugobjects.c
parentda897484557b34a54fabb81f6c223c19a69e546d (diff)
Input: adc-joystick - fix optional value handling
The abs-fuzz and abs-flat properties are documented as optional. When these are absent, fwnode_property_read_u32() will leave the input unchanged, meaning that an axis either picks up the value for the previous axis or an uninitialized value. Explicitly set these values to zero when they are unspecified to match the documented behaviour in the device tree bindings. Signed-off-by: John Keeping <jkeeping@inmusicbrands.com> Link: https://lore.kernel.org/r/20240731093310.3696919-1-jkeeping@inmusicbrands.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions