]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
media: i2c: adv748x: Simplify regmap configuration
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Tue, 27 Feb 2018 15:05:48 +0000 (10:05 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 21 Mar 2018 16:06:29 +0000 (12:06 -0400)
commit06aa8f3aa9c409a3973e6d338a771500fcee014c
treeb854024017d79001542a9fbfb0a791b16db462e2
parent3aab15af9ad8fa8dc0399cb4b679d7cb85c20a56
media: i2c: adv748x: Simplify regmap configuration

The ADV748x has identical map configurations for each register map. The
duplication of each map can be simplified using a helper macro such that
each map is represented on a single line.

Define ADV748X_REGMAP_CONF for this purpose use it to create the tables.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/adv748x/adv748x-core.c