mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
[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>
This commit is contained in:
parent
36bdbc3fff
commit
177ffe506c
@ -1816,7 +1816,7 @@ static int dvb_frontend_ioctl(struct file *file,
|
|||||||
struct dvb_frontend *fe = dvbdev->priv;
|
struct dvb_frontend *fe = dvbdev->priv;
|
||||||
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
|
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
|
||||||
struct dvb_frontend_private *fepriv = fe->frontend_priv;
|
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));
|
dev_dbg(fe->dvb->device, "%s: (%d)\n", __func__, _IOC_NR(cmd));
|
||||||
if (fepriv->exit != DVB_FE_NO_EXIT)
|
if (fepriv->exit != DVB_FE_NO_EXIT)
|
||||||
@ -1934,7 +1934,7 @@ static int dvb_frontend_ioctl_properties(struct file *file,
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else
|
} else
|
||||||
err = -EOPNOTSUPP;
|
err = -ENOTTY;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
kfree(tvp);
|
kfree(tvp);
|
||||||
@ -2067,7 +2067,7 @@ static int dvb_frontend_ioctl_legacy(struct file *file,
|
|||||||
struct dvb_frontend *fe = dvbdev->priv;
|
struct dvb_frontend *fe = dvbdev->priv;
|
||||||
struct dvb_frontend_private *fepriv = fe->frontend_priv;
|
struct dvb_frontend_private *fepriv = fe->frontend_priv;
|
||||||
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
|
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
|
||||||
int err = -EOPNOTSUPP;
|
int err = -ENOTTY;
|
||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case FE_GET_INFO: {
|
case FE_GET_INFO: {
|
||||||
|
Loading…
Reference in New Issue
Block a user