media: imx7-media-csi: Use functions instead of macros
authorFabio Estevam <festevam@gmail.com>
Sat, 1 Jun 2019 17:51:38 +0000 (13:51 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Jun 2019 19:55:11 +0000 (15:55 -0400)
commit345162044fa6d344007cbd822722a129be579d97
tree8c7fb05fc4e5739bbd2c61b1c02679bdcecb57bc
parent2b0287ef1d9e9a86517d481d270ac160a8c31651
media: imx7-media-csi: Use functions instead of macros

Currently there is a macro for reading and another macro for writing
to the CSI registers.

Functions can do parameter type checking, which leads to a safer code,
so switch from macro to function implementation.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c