]> asedeno.scripts.mit.edu Git - linux.git/commit
media: atmel-isc: Rework the format list
authorWenyou Yang <wenyou.yang@microchip.com>
Tue, 10 Oct 2017 02:46:40 +0000 (04:46 +0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 27 Oct 2017 11:58:46 +0000 (13:58 +0200)
commitf103ea11cd037943b511fa71c852ff14cc6de8ee
tree1dd2f09864b706d0f326b6e7a2fb838e2029e27e
parentb0ea17c589a8b16b4405ab9088d6472cbe08d481
media: atmel-isc: Rework the format list

To improve the readability of code, split the format array into two,
one for the format description, other for the register configuration.
Meanwhile, add the flag member to indicate the format can be achieved
from the sensor or be produced by the controller, and rename members
related to the register configuration.

Also add more formats support: GREY, ARGB444, ARGB555 and ARGB32.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/atmel/atmel-isc.c