[media] V4L: soc_mediabus: add a method to obtain the number of samples per pixel
authorAlberto Panizzo <maramaopercheseimorto@gmail.com>
Wed, 12 Jan 2011 11:16:19 +0000 (08:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:13 +0000 (20:32 -0300)
commit48a3c77338d725d4976fa792d822eb940ce5c296
tree908ff25858dbed62cb546139463507d471b5e609
parent7fdbd85bce033e2d0f74e5d326ab43906653cb81
[media] V4L: soc_mediabus: add a method to obtain the number of samples per pixel

Add a function to calculate the number of samples on the media-bus,
required to retrieve one pixel of a certain format.

Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_mediabus.c
include/media/soc_mediabus.h