diff options
author | Tom Rix <trix@redhat.com> | 2022-03-12 18:30:49 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-05-13 11:02:20 +0200 |
commit | 6d644a6300912730e316874911e6e51ee636ec53 (patch) | |
tree | 76ab317f750983f0a1d24da93a79d7f67697506d /drivers/media/usb/hdpvr/hdpvr-control.c | |
parent | media: coda: limit frame interval enumeration to supported encoder frame sizes (diff) | |
download | linux-6d644a6300912730e316874911e6e51ee636ec53.tar.xz linux-6d644a6300912730e316874911e6e51ee636ec53.zip |
media: stkwebcam: move stk_camera_read_reg() scratch buffer to struct stk_camera
In stk_camera_read_reg() a single byte buffer is alloc-ed and
freed on every function call. Since the size is known,
move the buffer to the struct stk_camera where it will be alloc-ed
and freed once.
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/usb/hdpvr/hdpvr-control.c')
0 files changed, 0 insertions, 0 deletions