]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/media/v4l2-common.h
Merge tag 'for-linus-timers-conversion-final-v4.15-rc1' of git://git.kernel.org/pub...
[mirror_ubuntu-bionic-kernel.git] / include / media / v4l2-common.h
index 350cbf9fb10e82b28c7e6dca48138c81a4e1daac..aac8b7b6e6917c27547113398a8d98fe8fcbac63 100644 (file)
                        v4l_client_printk(KERN_DEBUG, client, fmt , ## arg); \
        } while (0)
 
+/* Add a version of v4l_dbg to be used on drivers using dev_foo() macros */
+#define dev_dbg_lvl(__dev, __level, __debug, __fmt, __arg...)          \
+       do {                                                            \
+               if (__debug >= (__level))                               \
+                       dev_printk(KERN_DEBUG, __dev, __fmt, ##__arg);  \
+       } while (0)
+
 /* ------------------------------------------------------------------------- */
 
 /* These printk constructs can be used with v4l2_device and v4l2_subdev */