It's customary to declare static variables at the top of the function,
with a blank line separating them from the non-static variables.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
static int mipi_csis_dump_regs(struct csi_state *state)
{
- struct device *dev = &state->pdev->dev;
- unsigned int i;
- u32 cfg;
static const struct {
u32 offset;
const char * const name;
{ MIPI_CSIS_DBG_CTRL, "DBG_CTRL" },
};
+ struct device *dev = &state->pdev->dev;
+ unsigned int i;
+ u32 cfg;
+
dev_info(dev, "--- REGISTERS ---\n");
for (i = 0; i < ARRAY_SIZE(registers); i++) {