Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: staging: max96712: Document the DEBUG_EXTRA register

The DEBUG_EXTRA register is not part of soon to be added MAX96724
device. To make it easier to understand the differences when reading the
code prepare for the addition by creating named defines for the
register.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Niklas Söderlund and committed by
Mauro Carvalho Chehab
9350219a 2536a071

+5 -1
+5 -1
drivers/staging/media/max96712/max96712.c
··· 16 16 #include <media/v4l2-fwnode.h> 17 17 #include <media/v4l2-subdev.h> 18 18 19 + #define DEBUG_EXTRA_REG 0x09 20 + #define DEBUG_EXTRA_PCLK_25MHZ 0x00 21 + #define DEBUG_EXTRA_PCLK_75MHZ 0x01 22 + 19 23 enum max96712_pattern { 20 24 MAX96712_PATTERN_CHECKERBOARD = 0, 21 25 MAX96712_PATTERN_GRADIENT, ··· 174 170 } 175 171 176 172 /* PCLK 75MHz. */ 177 - max96712_write(priv, 0x0009, 0x01); 173 + max96712_write(priv, DEBUG_EXTRA_REG, DEBUG_EXTRA_PCLK_75MHZ); 178 174 179 175 /* Configure Video Timing Generator for 1920x1080 @ 30 fps. */ 180 176 max96712_write_bulk_value(priv, 0x1052, 0, 3);