aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2018-01-24 10:30:59 +0000
committerMauro Carvalho Chehab <[email protected]>2018-01-30 12:31:33 +0000
commitb8c601e8af2d08f733d74defa8465303391bb930 (patch)
tree49d3f9c1d9ff35af5323362114e837506c78ab01 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentmedia: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32 (diff)
downloadkernel-b8c601e8af2d08f733d74defa8465303391bb930.tar.gz
kernel-b8c601e8af2d08f733d74defa8465303391bb930.zip
media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer
ctrl_is_pointer just hardcoded two known string controls, but that caused problems when using e.g. custom controls that use a pointer for the payload. Reimplement this function: it now finds the v4l2_ctrl (if the driver uses the control framework) or it calls vidioc_query_ext_ctrl (if the driver implements that directly). In both cases it can now check if the control is a pointer control or not. Signed-off-by: Hans Verkuil <[email protected]> Acked-by: Sakari Ailus <[email protected]> Cc: <[email protected]> # for v4.15 and up Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions