Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9129a2e authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (10230): v4l2-device: fix buggy macro

parent 6e0e12f1
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -94,16 +94,16 @@ void v4l2_device_unregister_subdev(struct v4l2_subdev *sd);
/* Call the specified callback for all subdevs matching grp_id (if 0, then
/* Call the specified callback for all subdevs matching grp_id (if 0, then
   match them all). Ignore any errors. Note that you cannot add or delete
   match them all). Ignore any errors. Note that you cannot add or delete
   a subdev while walking the subdevs list. */
   a subdev while walking the subdevs list. */
#define v4l2_device_call_all(dev, grp_id, o, f, args...) 		\
#define v4l2_device_call_all(dev, grpid, o, f, args...) 		\
	__v4l2_device_call_subdevs(dev, 				\
	__v4l2_device_call_subdevs(dev, 				\
			!(grp_id) || sd->grp_id == (grp_id), o, f , ##args)
			!(grpid) || sd->grp_id == (grpid), o, f , ##args)


/* Call the specified callback for all subdevs matching grp_id (if 0, then
/* Call the specified callback for all subdevs matching grp_id (if 0, then
   match them all). If the callback returns an error other than 0 or
   match them all). If the callback returns an error other than 0 or
   -ENOIOCTLCMD, then return with that error code. Note that you cannot
   -ENOIOCTLCMD, then return with that error code. Note that you cannot
   add or delete a subdev while walking the subdevs list. */
   add or delete a subdev while walking the subdevs list. */
#define v4l2_device_call_until_err(dev, grp_id, o, f, args...) 		\
#define v4l2_device_call_until_err(dev, grpid, o, f, args...) 		\
	__v4l2_device_call_subdevs_until_err(dev,			\
	__v4l2_device_call_subdevs_until_err(dev,			\
		       !(grp_id) || sd->grp_id == (grp_id), o, f , ##args)
		       !(grpid) || sd->grp_id == (grpid), o, f , ##args)


#endif
#endif