]> git.karo-electronics.de Git - karo-tx-linux.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)
commitf1b26622ec551e3997a5c3bd73b456c1a8a1a0a1
tree6425c65ca8f30bbf86b868e0cc882ebafc55f021
parentd0998ce76f428bd607ab73c3258eabeb9735820f
[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