diff options
| author | Ivan Verbovoy <ivanverbovoy@gmail.com> | 2026-11-09 19:15:55 +0200 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-11-09 12:14:25 -0800 |
| commit | c1f4db7e869ce7dafd1811a75b392740985e1199 (patch) | |
| tree | 73832d5f03148456bec362e7157684ba3f2879a1 /tools/perf/scripts/python | |
| parent | f5f8cc539f8b2bd5324c03dfce8cca57284653e6 (diff) | |
Input: da7280 - do not advertise FF_GAIN
The driver sets FF_GAIN in the device's force feedback capabilities but
provides no set_gain() callback. input_ff_event() checks the capability
bit, not the callback, before calling ff->set_gain(), so an EV_FF/FF_GAIN
event written to the event node by any process with write access to it
calls through a NULL pointer.
The driver has no global gain to set: a constant effect carries its own
level, and a periodic effect plays a pattern from the device's waveform
memory. Drop FF_GAIN from the capabilities, so that input_ff_event()
ignores such an event.
Fixes: cd3f609823a5 ("Input: new da7280 haptic driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ivan Verbovoy <ivanverbovoy@gmail.com>
Link: https://patch.msgid.link/20261109-da7280-fixes-v1-1-09cc3650261c@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
