From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Date: Wed, 5 Nov 2014 11:58:07 +0000 (-0200)
Subject: [media] cx23110: Fix return code for cx24110_set_fec()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6deaca2bc3224aa138c93447000677ba5731007e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git

[media] cx23110: Fix return code for cx24110_set_fec()

When a parameter is invalid, the right return code is
-EINVAL.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
---

diff --git a/drivers/media/dvb-frontends/cx24110.c b/drivers/media/dvb-frontends/cx24110.c
index 4f5c992afe67..5a31b3f59306 100644
--- a/drivers/media/dvb-frontends/cx24110.c
+++ b/drivers/media/dvb-frontends/cx24110.c
@@ -217,8 +217,7 @@ static int cx24110_set_fec (struct cx24110_state* state, fe_code_rate_t fec)
 			cx24110_writereg(state, 0x1b, g2[fec]);
 			/* not sure if this is the right way: I always used AutoAcq mode */
 	   } else
-		   return -EOPNOTSUPP;
-/* fixme (low): which is the correct return code? */
+		   return -EINVAL;
 	}
 	return 0;
 }