media: atomisp: pci: Replace bytes macros with functions
authorBrent Pappas <bpappas@pappasbrent.com>
Wed, 18 Jan 2023 16:07:39 +0000 (17:07 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:24:35 +0000 (08:24 +0100)
commit2e82f054b58546efd062595dcfa448ee3d048273
treee14bd035920f78fd3b355da127d75f418313efe2
parentb3118a942c820c8d94a11ffd3d950660b3566d35
media: atomisp: pci: Replace bytes macros with functions

Replace the function-like macros FPNTBL_BYTES(), SCTBL_BYTES(), and
MORPH_PLANE_BYTES() with functions to comply with Linux coding style
standards.
Replace multiplication with calls to array_size() and array3_size()
to prevent accidental arithmetic overflow.

Link: https://lore.kernel.org/r/20230118160739.26059-1-bpappas@pappasbrent.com
Signed-off-by: Brent Pappas <bpappas@pappasbrent.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/sh_css_params.c