Commit 520a2844 authored by Eva Rachel Retuya's avatar Eva Rachel Retuya Committed by Greg Kroah-Hartman

staging: most: hdm-usb: convert pr_warn() to dev_warn()

Replace pr_warn() call with its respective dev_warn() counterpart.
Semantic patch used to detect and apply the transformation:

@A@
identifier dev;
expression E;
@@

	struct device *dev = E;
	<+... when != dev == NULL
- pr_warn(
+ dev_warn(dev,
		...);
	...+>
Signed-off-by: default avatarEva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0ea5f7c6
...@@ -1267,7 +1267,7 @@ hdm_probe(struct usb_interface *interface, const struct usb_device_id *id) ...@@ -1267,7 +1267,7 @@ hdm_probe(struct usb_interface *interface, const struct usb_device_id *id)
ep_desc->bEndpointAddress * 16, ep_desc->bEndpointAddress * 16,
1); 1);
if (err < 0) if (err < 0)
pr_warn("DCI Sync for EP %02x failed", dev_warn(dev, "DCI Sync for EP %02x failed",
ep_desc->bEndpointAddress); ep_desc->bEndpointAddress);
} }
dev_notice(dev, "claimed gadget: Vendor=%4.4x ProdID=%4.4x Bus=%02x Device=%02x\n", dev_notice(dev, "claimed gadget: Vendor=%4.4x ProdID=%4.4x Bus=%02x Device=%02x\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment