Input: synaptics-rmi4 - fix various V4L2 compliance problems in F54
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 23 Nov 2019 00:17:47 +0000 (16:17 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 23 Nov 2019 00:21:52 +0000 (16:21 -0800)
commit71c296f6d5b33faf9867d04c6c5d75c7e56b886b
treef64bdc82af79cd3a826770b9e5e0f43f606b3708
parentfc1156f373e3927e0dcf06678906c367588bfdd6
Input: synaptics-rmi4 - fix various V4L2 compliance problems in F54

The v4l2-compliance utility reported several V4L2 API compliance
issues:

- the sequence counter wasn't filled in
- the sequence counter wasn't reset to 0 at the start of streaming
- the returned field value wasn't set to V4L2_FIELD_NONE
- the timestamp wasn't set
- the payload size was undefined if an error was returned
- min_buffers_needed doesn't need to be initialized

Fix these issues.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de
Link: https://lore.kernel.org/r/20191119105118.54285-3-hverkuil-cisco@xs4all.nl
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f54.c