|
@@ -234,6 +234,7 @@ static long media_device_setup_link(struct media_device *mdev,
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#if 0 /* Let's postpone it to Kernel 4.6 */
|
|
static long __media_device_get_topology(struct media_device *mdev,
|
|
static long __media_device_get_topology(struct media_device *mdev,
|
|
struct media_v2_topology *topo)
|
|
struct media_v2_topology *topo)
|
|
{
|
|
{
|
|
@@ -389,6 +390,7 @@ static long media_device_get_topology(struct media_device *mdev,
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
static long media_device_ioctl(struct file *filp, unsigned int cmd,
|
|
static long media_device_ioctl(struct file *filp, unsigned int cmd,
|
|
unsigned long arg)
|
|
unsigned long arg)
|
|
@@ -422,13 +424,14 @@ static long media_device_ioctl(struct file *filp, unsigned int cmd,
|
|
mutex_unlock(&dev->graph_mutex);
|
|
mutex_unlock(&dev->graph_mutex);
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
+#if 0 /* Let's postpone it to Kernel 4.6 */
|
|
case MEDIA_IOC_G_TOPOLOGY:
|
|
case MEDIA_IOC_G_TOPOLOGY:
|
|
mutex_lock(&dev->graph_mutex);
|
|
mutex_lock(&dev->graph_mutex);
|
|
ret = media_device_get_topology(dev,
|
|
ret = media_device_get_topology(dev,
|
|
(struct media_v2_topology __user *)arg);
|
|
(struct media_v2_topology __user *)arg);
|
|
mutex_unlock(&dev->graph_mutex);
|
|
mutex_unlock(&dev->graph_mutex);
|
|
break;
|
|
break;
|
|
-
|
|
|
|
|
|
+#endif
|
|
default:
|
|
default:
|
|
ret = -ENOIOCTLCMD;
|
|
ret = -ENOIOCTLCMD;
|
|
}
|
|
}
|
|
@@ -477,7 +480,9 @@ static long media_device_compat_ioctl(struct file *filp, unsigned int cmd,
|
|
case MEDIA_IOC_DEVICE_INFO:
|
|
case MEDIA_IOC_DEVICE_INFO:
|
|
case MEDIA_IOC_ENUM_ENTITIES:
|
|
case MEDIA_IOC_ENUM_ENTITIES:
|
|
case MEDIA_IOC_SETUP_LINK:
|
|
case MEDIA_IOC_SETUP_LINK:
|
|
|
|
+#if 0 /* Let's postpone it to Kernel 4.6 */
|
|
case MEDIA_IOC_G_TOPOLOGY:
|
|
case MEDIA_IOC_G_TOPOLOGY:
|
|
|
|
+#endif
|
|
return media_device_ioctl(filp, cmd, arg);
|
|
return media_device_ioctl(filp, cmd, arg);
|
|
|
|
|
|
case MEDIA_IOC_ENUM_LINKS32:
|
|
case MEDIA_IOC_ENUM_LINKS32:
|