]> git.baikalelectronics.ru Git - kernel.git/commit
[media] stb6100: get rid of get_state()/set_state()
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 11 Nov 2015 20:42:00 +0000 (18:42 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 17 Nov 2015 08:45:05 +0000 (06:45 -0200)
commitc8c2c3310dd43c6a52f870288892d6d357513d34
tree82a613aaec8c8313668a53532d281415747eb8c3
parenta4b97ca43d2e080fe8d969b39d487b2c414b6582
[media] stb6100: get rid of get_state()/set_state()

It is tricky to get rid of those ops here, as the stv0299 driver
wants to set frequency in separate from setting the bandwidth.

So, we use a small trick: we temporarely fill the cache with
0 for either frequency or bandwidth and add some logic at
set_params to only change the property(ies) that aren't zero.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/stb6100.c
drivers/media/dvb-frontends/stb6100_cfg.h
drivers/media/dvb-frontends/stb6100_proc.h