From: Jean Delvare Date: Sun, 7 Sep 2008 08:56:55 +0000 (-0300) Subject: V4L/DVB (8958): zr36067: Return proper bytes-per-line value X-Git-Tag: v2.6.27-rc9~6^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bba4449c637660d5a8b2aee5ad0206df9fd6f334;p=pandora-kernel.git V4L/DVB (8958): zr36067: Return proper bytes-per-line value The zr36067 driver should return the actual bytes-per-line value when queried with ioctl VIDIOC_G_FMT, instead of 0. Otherwise user-space applications can get confused. Likewise, with ioctl VIDIOC_S_FMT, we are supposed to fill the bytes-per-line value. And we shouldn't fail if the caller sets the initial value to something different from 0. This is perfectly valid for applications to pre-fill this field with the value they expect. Signed-off-by: Jean Delvare Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed