]> git.baikalelectronics.ru Git - kernel.git/commitdiff
[media] dvb_frontend: return -ENOTTY for unimplement IOCTL
authorAntti Palosaari <crope@iki.fi>
Wed, 15 Aug 2012 23:28:38 +0000 (20:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 10 Sep 2012 14:14:35 +0000 (11:14 -0300)
Earlier it was returning -EOPNOTSUPP.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-core/dvb_frontend.c

index 609e691eff151c3c66623a0c889ca99978df3474..2bc80b153c5900c2ebfa90d4afe517d13247592c 100644 (file)
@@ -1816,7 +1816,7 @@ static int dvb_frontend_ioctl(struct file *file,
        struct dvb_frontend *fe = dvbdev->priv;
        struct dtv_frontend_properties *c = &fe->dtv_property_cache;
        struct dvb_frontend_private *fepriv = fe->frontend_priv;
-       int err = -EOPNOTSUPP;
+       int err = -ENOTTY;
 
        dev_dbg(fe->dvb->device, "%s: (%d)\n", __func__, _IOC_NR(cmd));
        if (fepriv->exit != DVB_FE_NO_EXIT)
@@ -1934,7 +1934,7 @@ static int dvb_frontend_ioctl_properties(struct file *file,
                }
 
        } else
-               err = -EOPNOTSUPP;
+               err = -ENOTTY;
 
 out:
        kfree(tvp);
@@ -2067,7 +2067,7 @@ static int dvb_frontend_ioctl_legacy(struct file *file,
        struct dvb_frontend *fe = dvbdev->priv;
        struct dvb_frontend_private *fepriv = fe->frontend_priv;
        struct dtv_frontend_properties *c = &fe->dtv_property_cache;
-       int err = -EOPNOTSUPP;
+       int err = -ENOTTY;
 
        switch (cmd) {
        case FE_GET_INFO: {