diff options
| author | Moses Christopher Bollavarapu <mosescb.dev@gmail.com> | 2022-03-17 17:47:14 +0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-24 10:25:08 +0300 |
| commit | 378a0e4ba89892f78fcab64f03f57f99714a1914 (patch) | |
| tree | cdbbf1492af4ec10d3984ae1cca7af59c85f09c5 /scripts/patch-kernel | |
| parent | 7dd0f93a31af03cba81c684c4c361bba510ffe71 (diff) | |
| download | linux-378a0e4ba89892f78fcab64f03f57f99714a1914.tar.xz | |
media: ov7640: Use ARRAY_SIZE instead of manual checking
Currently, the driver ends the reg-val list with a 0xFF as a check to stop
the loop. Instead an array of reg-vals can be used to avoid this check,
by using the ARRAY_SIZE(arr) macro to obtain the length of the array and
iterate over it.
Signed-off-by: Moses Christopher Bollavarapu <mosescb.dev@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
