Revert "dvb: add 32/64 bits compatibility support"
authorChristian Hoffmann <chrmhoffmann@gmail.com>
Sat, 4 Feb 2023 18:41:04 +0000 (19:41 +0100)
committerChristian Hoffmann <chrmhoffmann@gmail.com>
Sun, 12 Feb 2023 08:05:53 +0000 (09:05 +0100)
This partially reverts commit 7b663ab7ed43e81d9017b770eaa7b3b2fcc1b629.

Change-Id: If809d096901809b2a67b34cea3c0cef7657d01e7

drivers/media/dvb-core/dmxdev.c
drivers/media/dvb-core/dvb_ca_en50221.c
drivers/media/dvb-core/dvb_frontend.c

index 5a9a00d9e6469f94e7143a51cf247f2b8ee87601..ce6d9cbee3b8069899e74910f42e38ba3c38aeb7 100644 (file)
@@ -1222,18 +1222,6 @@ static int dvb_demux_release(struct inode *inode, struct file *file)
        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,
@@ -1242,9 +1230,6 @@ static const struct file_operations dvb_demux_fops = {
        .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 = {
@@ -1328,18 +1313,6 @@ static unsigned int dvb_dvr_poll(struct file *file, poll_table *wait)
        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,
@@ -1349,9 +1322,6 @@ static const struct file_operations dvb_dvr_fops = {
        .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 = {
index 43bf20639c341ce3530a73d828b52e11a61b4f12..42ce88ceac66d914cee62a1a68b67f33db139181 100644 (file)
@@ -1683,17 +1683,6 @@ static unsigned int dvb_ca_en50221_io_poll(struct file *file, poll_table * wait)
 }
 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,
@@ -1704,9 +1693,6 @@ static const struct file_operations dvb_ca_fops = {
        .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 = {
index 564956d6dd74151ec1bcdcadc82dfa55e3dc690d..ebe1307fd5b2cdda7774a530b88d8bcf37b89118 100644 (file)
@@ -2661,30 +2661,6 @@ static int dvb_frontend_release(struct inode *inode, struct file *file)
        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,
@@ -2692,9 +2668,6 @@ static const struct file_operations dvb_frontend_fops = {
        .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)