V4L/DVB (13217): tda18271: handle rf_cal_on_startup properly during attach
authorMichael Krufky <mkrufky@kernellabs.com>
Sat, 24 Oct 2009 21:18:03 +0000 (18:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:56 +0000 (18:40 -0200)
commit188ea058ff2e671270273a1f5d13f46ca75b8a35
tree62939d3ea54575e6eafb23ce37c01355bf2bff0c
parentc54e1dde586ea0e930d6c443ca60a9b9d0310de3
V4L/DVB (13217): tda18271: handle rf_cal_on_startup properly during attach

If rf_cal_on_startup is enabled in the structure passed into
tda18271_attach, and the cal module option isn't disabled, then we
should run the initialization and calibration procedures during the
tda18271_attach function call, regardless of how many instances of the
driver have been attached.  If the device is already calibrated, the
driver will detect that and will only calibrate again if necessary.

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda18271-fe.c