media: s2255: Parenthesize macro argument to avoid precedence issues

Fix 'CHECK: Macro argument 'dev' may be better as '(dev)' to avoid
precedence issues' reported by checkpatch.pl in s2255drv.c. Wrap
the 'dev' macro argument in parentheses in the dprintk macro.

Signed-off-by: Lei Huang <huanglei@kylinos.cn>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
Lei Huang 2026-07-20 10:55:02 +08:00 committed by Hans Verkuil
parent fcd708ee65
commit f29d0d8219

View File

@ -348,7 +348,7 @@ static long s2255_vendor_req(struct s2255_dev *dev, unsigned char req,
dev_err(dev, S2255_DRIVER_NAME " - " fmt, ##arg)
#define dprintk(dev, level, fmt, arg...) \
v4l2_dbg(level, debug, &dev->v4l2_dev, fmt, ## arg)
v4l2_dbg(level, debug, &(dev)->v4l2_dev, fmt, ## arg)
static struct usb_driver s2255_driver;