aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-subdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/media/v4l2-subdev.h')
-rw-r--r--include/media/v4l2-subdev.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
index 05b69652e6c4..1b97a2c33a73 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -191,4 +191,9 @@ static inline void v4l2_subdev_init(struct v4l2_subdev *sd,
191 (!(sd) ? -ENODEV : (((sd) && (sd)->ops->o && (sd)->ops->o->f) ? \ 191 (!(sd) ? -ENODEV : (((sd) && (sd)->ops->o && (sd)->ops->o->f) ? \
192 (sd)->ops->o->f((sd) , ##args) : -ENOIOCTLCMD)) 192 (sd)->ops->o->f((sd) , ##args) : -ENOIOCTLCMD))
193 193
194/* Send a notification to v4l2_device. */
195#define v4l2_subdev_notify(sd, notification, arg) \
196 ((!(sd) || !(sd)->v4l2_dev || !(sd)->v4l2_dev->notify) ? -ENODEV : \
197 (sd)->v4l2_dev->notify((sd), (notification), (arg)))
198
194#endif 199#endif