staging: most: hdm-usb: convert pr_warn() to dev_warn()
Subsystems (2)
PATCH v2 1/1 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 Eva Rachel Retuya <[email protected]>
---
Change in v2:
* amend coccinelle script to drop unnecessary matching statements
drivers/staging/most/hdm-usb/hdm_usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/most/hdm-usb/hdm_usb.c +2 -2
@@ -1315,8 +1315,8 @@ hdm_probe(struct usb_interface *interface, const struct usb_device_id *id) ep_desc->bEndpointAddress *16 , 1);if (err <0 ) -pr_warn ("DCI Sync for EP %02x failed" , - ep_desc->bEndpointAddress); +dev_warn (dev,"DCI Sync for EP %02x failed" , + ep_desc->bEndpointAddress); } dev_notice(dev, "claimed gadget: Vendor=%4.4x ProdID=%4.4x Bus=%02x Device=%02x\n", le16_to_cpu(usb_dev->descriptor.idVendor),
Signature · 1 line
2.7.4