aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-core
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-08-15 19:28:38 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-10 10:14:35 -0400
commit177ffe506cf8ab5d1d52e7af36871a70d8c22e90 (patch)
treed5ec8feee19e0378c810ce08da3d0875b2424327 /drivers/media/dvb-core
parent36bdbc3fff09bce215137cde084f1a1855ad3ae2 (diff)
[media] dvb_frontend: return -ENOTTY for unimplement IOCTL
Earlier it was returning -EOPNOTSUPP. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r--drivers/media/dvb-core/dvb_frontend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
index 609e691eff15..2bc80b153c59 100644
--- a/drivers/media/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb-core/dvb_frontend.c
@@ -1816,7 +1816,7 @@ static int dvb_frontend_ioctl(struct file *file,
1816 struct dvb_frontend *fe = dvbdev->priv; 1816 struct dvb_frontend *fe = dvbdev->priv;
1817 struct dtv_frontend_properties *c = &fe->dtv_property_cache; 1817 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
1818 struct dvb_frontend_private *fepriv = fe->frontend_priv; 1818 struct dvb_frontend_private *fepriv = fe->frontend_priv;
1819 int err = -EOPNOTSUPP; 1819 int err = -ENOTTY;
1820 1820
1821 dev_dbg(fe->dvb->device, "%s: (%d)\n", __func__, _IOC_NR(cmd)); 1821 dev_dbg(fe->dvb->device, "%s: (%d)\n", __func__, _IOC_NR(cmd));
1822 if (fepriv->exit != DVB_FE_NO_EXIT) 1822 if (fepriv->exit != DVB_FE_NO_EXIT)
@@ -1934,7 +1934,7 @@ static int dvb_frontend_ioctl_properties(struct file *file,
1934 } 1934 }
1935 1935
1936 } else 1936 } else
1937 err = -EOPNOTSUPP; 1937 err = -ENOTTY;
1938 1938
1939out: 1939out:
1940 kfree(tvp); 1940 kfree(tvp);
@@ -2067,7 +2067,7 @@ static int dvb_frontend_ioctl_legacy(struct file *file,
2067 struct dvb_frontend *fe = dvbdev->priv; 2067 struct dvb_frontend *fe = dvbdev->priv;
2068 struct dvb_frontend_private *fepriv = fe->frontend_priv; 2068 struct dvb_frontend_private *fepriv = fe->frontend_priv;
2069 struct dtv_frontend_properties *c = &fe->dtv_property_cache; 2069 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
2070 int err = -EOPNOTSUPP; 2070 int err = -ENOTTY;
2071 2071
2072 switch (cmd) { 2072 switch (cmd) {
2073 case FE_GET_INFO: { 2073 case FE_GET_INFO: {