media: v4l2-ctrls: split up into four source files
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 27 Apr 2021 12:07:03 +0000 (14:07 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 25 May 2021 15:03:29 +0000 (17:03 +0200)
commit71c689dc2e732d4cb190aaf0edea73116b1611bd
tree9e2c0f62aab56d3440b8c2e2f92b2be7f971de56
parentc3bf5129f33923c92bf3bddaf4359b7b25ecb4ba
media: v4l2-ctrls: split up into four source files

The v4l2-ctrls.c source has become much too big, so split it up
into four separate parts:

v4l2-ctrls-core.c: contains the core framework code
v4l2-ctrls-api.c: contains the uAPI interface to the framework
v4l2-ctrls-defs.c: contains the control definitions
v4l2-ctrls-request.c: contains the Request API helpers

And it adds a new v4l2-ctrls-priv.h.

No code was changed, but a number of checkpatch.pl warnings were
fixed (alignment, f == NULL -> !f, long comment block coding style,
unsigned -> unsigned int).

The copyright statements were updated as well since they were
quite out of date.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst
drivers/media/v4l2-core/Makefile
drivers/media/v4l2-core/v4l2-ctrls-api.c [new file with mode: 0644]
drivers/media/v4l2-core/v4l2-ctrls-core.c [new file with mode: 0644]
drivers/media/v4l2-core/v4l2-ctrls-defs.c [new file with mode: 0644]
drivers/media/v4l2-core/v4l2-ctrls-priv.h [new file with mode: 0644]
drivers/media/v4l2-core/v4l2-ctrls-request.c [new file with mode: 0644]
drivers/media/v4l2-core/v4l2-ctrls.c [deleted file]