Re: [RFC PATCH 3/7] v4l2-fh: add v4l2_fh_open_is_first and v4l2_fh_release_is_last

2015-07-28 Thread Hans Verkuil
Hi Sakari, On 07/26/2015 12:42 AM, Sakari Ailus wrote: Hi Hans, On Fri, Jul 24, 2015 at 12:21:32PM +0200, Hans Verkuil wrote: From: Hans Verkuil hans.verk...@cisco.com Add new helper functions that report back if this was the first open or last close. Signed-off-by: Hans Verkuil

Re: [RFC PATCH 3/7] v4l2-fh: add v4l2_fh_open_is_first and v4l2_fh_release_is_last

2015-07-25 Thread Sakari Ailus
Hi Hans, On Fri, Jul 24, 2015 at 12:21:32PM +0200, Hans Verkuil wrote: From: Hans Verkuil hans.verk...@cisco.com Add new helper functions that report back if this was the first open or last close. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- ... @@ -65,11 +65,23 @@ void

[RFC PATCH 3/7] v4l2-fh: add v4l2_fh_open_is_first and v4l2_fh_release_is_last

2015-07-24 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Add new helper functions that report back if this was the first open or last close. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-fh.c | 25 ++--- include/media/v4l2-fh.h | 27