]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cxd2841er: don't expose a dvbv5 stats to userspace if not available
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 1 Jul 2016 14:03:13 +0000 (11:03 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 21:57:51 +0000 (18:57 -0300)
commitd9b41fd5653540e3846f269076e76d61b1606f58
tree6425c65ca8f30bbf86b868e0cc882ebafc55f021
parentbf0210a2c6a714bca0a10b564d52f42fac282729
[media] cxd2841er: don't expose a dvbv5 stats to userspace if not available

The current code will expose a zero value if one of the stats is
not available, but this is not what userspace expects. Instead,
if something goes wrong on providing some stats, it should be
changing the scale to FE_SCALE_NOT_AVAILABLE.

So, change the logic to do the right thing.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/cxd2841er.c