linux/drivers/media/platform/rcar-vin
Niklas Söderlund bb3ed3fd66 media: rcar-vin: move model information to own struct
When Gen3 support is added to the driver more than model ID will be
different for the different SoCs. To avoid a lot of if statements in the
code create a struct rvin_info to store this information.

While we are at it rename the poorly chosen enum which contains the
different model IDs from chip_id to model_id. Also sort the compatible
string entries and make use of of_device_get_match_data() which will
always work as the driver is DT only, so there's always a valid match.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-04-20 09:50:07 -04:00
..
Kconfig [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
Makefile
rcar-core.c media: rcar-vin: move model information to own struct 2018-04-20 09:50:07 -04:00
rcar-dma.c media: rcar-vin: rename poorly named initialize and cleanup functions 2018-04-20 09:31:33 -04:00
rcar-v4l2.c media: rcar-vin: move model information to own struct 2018-04-20 09:50:07 -04:00
rcar-vin.h media: rcar-vin: move model information to own struct 2018-04-20 09:50:07 -04:00