]> git.baikalelectronics.ru Git - kernel.git/commit
media: vsp1: Provide VSP1 feature helper macro
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Fri, 3 Aug 2018 11:37:25 +0000 (07:37 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 3 Aug 2018 19:57:50 +0000 (15:57 -0400)
commit2783c30563583b50bed65a7339852ead03066328
tree478332260c866e7dae15801cb45efc57cbc09c2b
parent8323dc48d2256345ac7406c5d3051693e67899af
media: vsp1: Provide VSP1 feature helper macro

The VSP1 devices define their specific capabilities through features
marked in their device info structure. Various parts of the code read
this info structure to infer if the features are available.

Wrap this into a more readable vsp1_feature(vsp1, f) macro to ensure
that usage is consistent throughout the driver.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vsp1/vsp1.h
drivers/media/platform/vsp1/vsp1_drv.c
drivers/media/platform/vsp1/vsp1_wpf.c