[media] media: dvb-core move fe exit flag from fepriv to fe for driver access
authorShuah Khan <shuah.kh@samsung.com>
Sat, 12 Jul 2014 16:44:12 +0000 (13:44 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 26 Jul 2014 14:17:15 +0000 (11:17 -0300)
commit18ed2860cb1345c1c99f62b089a15ac858f7bd48
treeacd5e8a832eb78a183ac5ef07c66be2f383b9639
parentcc5c5d20c3cb9066576043b937b35d6b669a52e0
[media] media: dvb-core move fe exit flag from fepriv to fe for driver access

Some fe drivers attempt to access the device for power control from
their release routines. When release routines are called after device
is disconnected, the attempts fail. fe drivers should avoid accessing
the device, from their release interfaces when called from disconnect
path. dvb-frontend maintains exit flag to keep track when fe device is
disconnected in its private data structures. Export the flag in fe to
enable drivers to check the device status from their release interfaces.

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-core/dvb_frontend.c
drivers/media/dvb-core/dvb_frontend.h