[PATCH] v4l2-ioctl: Don't assume file-private_data always points to a v4l2_fh

2012-07-07 Thread Hans de Goede
Commit efbceecd4522a41b8442c6b4f68b4508d57d1ccf, adds a number of helper functions for ctrl related ioctls to v4l2-ioctl.c, these helpers assume that if file-private_data != NULL, it points to a v4l2_fh, which is only the case for drivers which actually use v4l2_fh. This breaks for example bttv

Re: [PATCH] v4l2-ioctl: Don't assume file-private_data always points to a v4l2_fh

2012-07-07 Thread Hans Verkuil
On Sat July 7 2012 20:46:21 Hans de Goede wrote: Commit efbceecd4522a41b8442c6b4f68b4508d57d1ccf, adds a number of helper functions for ctrl related ioctls to v4l2-ioctl.c, these helpers assume that if file-private_data != NULL, it points to a v4l2_fh, which is only the case for drivers which

Re: [PATCH] v4l2-ioctl: Don't assume file-private_data always points to a v4l2_fh

2012-07-07 Thread Hans de Goede
Hi, On 07/07/2012 09:11 PM, Hans Verkuil wrote: On Sat July 7 2012 20:46:21 Hans de Goede wrote: Commit efbceecd4522a41b8442c6b4f68b4508d57d1ccf, adds a number of helper functions for ctrl related ioctls to v4l2-ioctl.c, these helpers assume that if file-private_data != NULL, it points to a