media: si2157: Better check for running tuner in init
authorBrad Love <brad@nextdimension.cc>
Thu, 14 Nov 2019 20:03:57 +0000 (21:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jun 2020 08:24:13 +0000 (10:24 +0200)
commit4688ba5b53400215889151f34fee51de7b483f71
tree11fdf2a8ed803cd6865c638a511cfb4ac37ae606
parent7cfcf05c86f8143935e8c6983abcb57265890474
media: si2157: Better check for running tuner in init

[ Upstream commit e955f959ac52e145f27ff2be9078b646d0352af0 ]

Getting the Xtal trim property to check if running is less error prone.
Reset if_frequency if state is unknown.

Replaces the previous "garbage check".

Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/tuners/si2157.c