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)
commit3fcedae346029561f4d033412371c857fa9ebf0f
treebc172c77f09a8207edec7f260634b2f9bb9fceba
parent9fcb242be63db7c43c65401b615012225c648515
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