]> git.baikalelectronics.ru Git - kernel.git/commit
media: vivid: remove unnecessary min and max timeperframe constants
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 14 Jun 2019 14:09:06 +0000 (10:09 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 21 Jun 2019 21:12:25 +0000 (17:12 -0400)
commit5d3e06d9048acad9fb75226ce9496f6c56a6b65c
treebc172c77f09a8207edec7f260634b2f9bb9fceba
parentd6b71d3ed8ae9513f61971cd4084c913027d2a65
media: vivid: remove unnecessary min and max timeperframe constants

The tpf_min (1/100) and tpf_max (100/1) are used as the lowest and the
highest allowable value for the desired frame period in
vivid_vid_cap_s_parm().

But the comparison between these values is unnecessary because the compared
value is already chosen from webcam_intervals[] (from 1/60 to 1/1).

Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vivid/vivid-core.h
drivers/media/platform/vivid/vivid-vid-cap.c