]> git.baikalelectronics.ru Git - kernel.git/commit
[media] V4L: soc-camera: compatible bus-width flags
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 27 Jul 2011 13:10:43 +0000 (10:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 20:27:36 +0000 (18:27 -0200)
commit8cca184dd14c5c0beca715254af0bf717c48dc81
tree0f2c6529bda6a2fe79dbea34e415ac545eab130b
parent167a46e8a1b0b12a05eab26dde4f84a53a670494
[media] V4L: soc-camera: compatible bus-width flags

With the new subdevice media-bus configuration methods bus-width is not
configured along with other bus parameters, instead, it is derived from
the data format. With those methods it is convenient to specify
supported bus-widths in the platform data as (1 << (width - 1)). We
redefine SOCAM_DATAWIDTH_* flags to use the same convention to make
platform data seemlessly reusable.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/media/soc_camera.h