From: Hans Verkuil Date: Mon, 17 Mar 2014 12:54:19 +0000 (-0300) Subject: [media] v4l2-subdev.h: fix sparse error with v4l2_subdev_notify X-Git-Tag: omap-for-v3.16/fixes-against-rc1~25^2~269 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba76a6e6a5eaa3736df743818394978af456cf70;p=pandora-kernel.git [media] v4l2-subdev.h: fix sparse error with v4l2_subdev_notify The notify function is a void function, yet the v4l2_subdev_notify define uses it in a ? : construction, which causes sparse warnings. Replace the define by a static inline function and move it to v4l2-device.h, which is where it belongs since it needs to know the v4l2_device struct. This wasn't a problem when it was a define, but as a static inline function this no longer compiles in v4l2-subdev.h. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed