OSDN Git Service

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)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 21 Apr 2020 14:45:44 +0000 (16:45 +0200)
commite955f959ac52e145f27ff2be9078b646d0352af0
tree51ff37a74b6d562cabbac54d51842c5bf0b3934c
parent5741f4affb694653c2cec3d75aa4dd56cae2175b
media: si2157: Better check for running tuner in init

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>
drivers/media/tuners/si2157.c