]> asedeno.scripts.mit.edu Git - linux.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)
commit65f0f686de9fcbad7dadcedae94de77ab8b558b7
tree82a613aaec8c8313668a53532d281415747eb8c3
parentb2d3afcfbdb7cd48759433ab9a0dd1bf20cc6aa8
[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