upstream: [media] v4l2-subdev.h: fix sparse error with v4l2_subdev_notify
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 17 Mar 2014 12:54:19 +0000 (09:54 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:55:11 +0000 (11:55 +0900)
commit53461cf80ca802a81264adfacfd44dc13f85f578
tree80062e300456d9ea2460d6d6fab5eca4974547d8
parent5df4aef04be5c3643d7ce9ab457b5cddb8656d07
upstream: [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 <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
include/media/v4l2-device.h
include/media/v4l2-subdev.h