summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/uvc.h
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2018-12-17 07:03:40 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2019-01-28 11:51:30 +0100
commite49107d8acfee263b2bd8831d4833c4ead152784 (patch)
tree9a6c8297c85e26b87c9a612378c4c0914ec31d2a /drivers/usb/gadget/function/uvc.h
parentusb: gadget: u_serial: process RX in workqueue instead of tasklet (diff)
downloadlinux-e49107d8acfee263b2bd8831d4833c4ead152784.tar.xz
linux-e49107d8acfee263b2bd8831d4833c4ead152784.zip
usb: gadget: uvc: add uvcg_warn macro
We only have uvcg_dbg, uvcg_info, and uvcg_err, so add uvcg_warn macro to print gadget device name and function name along with format. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/function/uvc.h')
-rw-r--r--drivers/usb/gadget/function/uvc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/uvc.h b/drivers/usb/gadget/function/uvc.h
index 099d650082e5..1473d25ff17a 100644
--- a/drivers/usb/gadget/function/uvc.h
+++ b/drivers/usb/gadget/function/uvc.h
@@ -56,6 +56,8 @@ extern unsigned int uvc_gadget_trace_param;
dev_dbg(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args)
#define uvcg_info(f, fmt, args...) \
dev_info(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args)
+#define uvcg_warn(f, fmt, args...) \
+ dev_warn(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args)
#define uvcg_err(f, fmt, args...) \
dev_err(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args)