return ret;
}
-#ifdef CONFIG_AMLOGIC_DVB_COMPAT
-static long dvb_demux_compat_ioctl(struct file *filp,
- unsigned int cmd, unsigned long args)
-{
- unsigned long ret;
-
- args = (unsigned long)compat_ptr(args);
- ret = dvb_demux_ioctl(filp, cmd, args);
- return ret;
-}
-#endif
-
static const struct file_operations dvb_demux_fops = {
.owner = THIS_MODULE,
.read = dvb_demux_read,
.release = dvb_demux_release,
.poll = dvb_demux_poll,
.llseek = default_llseek,
-#ifdef CONFIG_AMLOGIC_DVB_COMPAT
- .compat_ioctl = dvb_demux_compat_ioctl,
-#endif
};
static const struct dvb_device dvbdev_demux = {
return mask;
}
-#ifdef CONFIG_AMLOGIC_DVB_COMPAT
-static long dvb_dvr_compat_ioctl(struct file *filp,
- unsigned int cmd, unsigned long args)
-{
- unsigned long ret;
-
- args = (unsigned long)compat_ptr(args);
- ret = dvb_dvr_ioctl(filp, cmd, args);
- return ret;
-}
-#endif
-
static const struct file_operations dvb_dvr_fops = {
.owner = THIS_MODULE,
.read = dvb_dvr_read,
.release = dvb_dvr_release,
.poll = dvb_dvr_poll,
.llseek = default_llseek,
-#ifdef CONFIG_AMLOGIC_DVB_COMPAT
- .compat_ioctl = dvb_dvr_compat_ioctl,
-#endif
};
static const struct dvb_device dvbdev_dvr = {
}
EXPORT_SYMBOL(dvb_ca_en50221_init);
-#ifdef CONFIG_AMLOGIC_DVB_COMPAT
-static long dvb_ca_en50221_compat_ioctl(struct file *filp,
- unsigned int cmd, unsigned long args)
-{
- unsigned long ret;
-
- args = (unsigned long)compat_ptr(args);
- ret = dvb_ca_en50221_io_ioctl(filp, cmd, args);
- return ret;
-}
-#endif
static const struct file_operations dvb_ca_fops = {
.owner = THIS_MODULE,
.release = dvb_ca_en50221_io_release,
.poll = dvb_ca_en50221_io_poll,
.llseek = noop_llseek,
-#ifdef CONFIG_AMLOGIC_DVB_COMPAT
- .compat_ioctl = dvb_ca_en50221_compat_ioctl,
-#endif
};
static const struct dvb_device dvbdev_ca = {
return ret;
}
-#ifdef CONFIG_AMLOGIC_DVB_COMPAT
-static long dvb_frontend_compat_ioctl(struct file *filp,
- unsigned int cmd, unsigned long args)
-{
- unsigned long ret;
- struct dtv_properties tvps;
-
- args = (unsigned long)compat_ptr(args);
-
- if ((cmd == FE_SET_PROPERTY) || (cmd == FE_GET_PROPERTY)) {
- if (copy_from_user(&tvps, (void *)args,
- sizeof(struct dtv_properties)))
- return -EFAULT;
- tvps.props = compat_ptr((unsigned long)tvps.props);
- if (copy_to_user((void *)args, (void *)&tvps,
- sizeof(struct dtv_properties)))
- return -EFAULT;
- }
-
- ret = dvb_generic_ioctl(filp, cmd, args);
- return ret;
-}
-#endif
-
static const struct file_operations dvb_frontend_fops = {
.owner = THIS_MODULE,
.unlocked_ioctl = dvb_generic_ioctl,
.open = dvb_frontend_open,
.release = dvb_frontend_release,
.llseek = noop_llseek,
-#ifdef CONFIG_AMLOGIC_DVB_COMPAT
- .compat_ioctl = dvb_frontend_compat_ioctl,
-#endif
};
int dvb_frontend_suspend(struct dvb_frontend *fe)