diff options
| author | Lei Huang <huanglei@kylinos.cn> | 2026-07-20 10:55:02 +0800 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-07-27 14:22:06 +0200 |
| commit | f29d0d8219f0b9eb537b92abc3041758133deb77 (patch) | |
| tree | c3ba93fd484af44d0f3614f01c3cfb01e2fb6f4c /drivers | |
| parent | fcd708ee65f526c6c796079dba6ef70bb2538516 (diff) | |
| download | linux-next-f29d0d8219f0b9eb537b92abc3041758133deb77.tar.gz linux-next-f29d0d8219f0b9eb537b92abc3041758133deb77.zip | |
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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/media/usb/s2255/s2255drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/s2255/s2255drv.c b/drivers/media/usb/s2255/s2255drv.c index c65cb794599b..e5242247a118 100644 --- a/drivers/media/usb/s2255/s2255drv.c +++ b/drivers/media/usb/s2255/s2255drv.c @@ -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; |
