]> git.baikalelectronics.ru Git - kernel.git/commit
[media] stv090x: Fix delivery system setting
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 5 Nov 2014 11:20:48 +0000 (09:20 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 5 Nov 2014 11:23:05 +0000 (09:23 -0200)
commit884700703f9cec626aec1c9f8e398fbd5d1fb653
treee5e7221f301a0abb82953c9120535ce09825c3aa
parent4314f9c8c38f4ed4586434a4a0d9747e386e8f4a
[media] stv090x: Fix delivery system setting

As sparse complains:
drivers/media/dvb-frontends/stv090x.c:3471:30: warning: mixing different enum types
drivers/media/dvb-frontends/stv090x.c:3471:30:     int enum fe_delivery_system  versus
drivers/media/dvb-frontends/stv090x.c:3471:30:     int enum stv090x_delsys

There's actually an error when setting the delivery system on
stv090x_search(): it is using the DVBv5 macros as if they were
the stv090x ones.

Instead, we should convert between the two namespaces, returning
an error if an unsupported delivery system is requested.

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