diff options
author | John Keeping <[email protected]> | 2024-07-31 10:33:09 +0100 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2024-07-31 10:20:43 -0700 |
commit | 684890a0185dabf5920c43b639133adc4c2632cf (patch) | |
tree | c3156da0fd385f8323f8359b83c181672c85d720 /tools/perf/scripts/python | |
parent | da897484557b34a54fabb81f6c223c19a69e546d (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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions