[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240102140641.1740275-1-bhavin.sharma@siliconsignals.io>
Date: Tue, 2 Jan 2024 19:36:40 +0530
From: Bhavin Sharma <bhavin.sharma@...iconsignals.io>
To: mchehab@...nel.org,
kieran.bingham@...asonboard.com
Cc: bhavin.sharma@...iconsignals.io,
Lars-Peter Clausen <lars@...afoo.de>,
linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2] media: adv7180: Fix cppcheck errors
ERROR: else should follow close brace '}'
Signed-off-by: Bhavin Sharma <bhavin.sharma@...iconsignals.io>
---
drivers/media/i2c/adv7180.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c
index 54134473186b..e3b59f7e2a2a 100644
--- a/drivers/media/i2c/adv7180.c
+++ b/drivers/media/i2c/adv7180.c
@@ -1046,11 +1046,11 @@ static int adv7182_init(struct adv7180_state *state)
ADV7180_REG_EXTENDED_OUTPUT_CONTROL,
0x17);
}
- }
- else
+ } else {
adv7180_write(state,
ADV7180_REG_EXTENDED_OUTPUT_CONTROL,
0x07);
+ }
adv7180_write(state, ADV7180_REG_OUTPUT_CONTROL, 0x0c);
adv7180_write(state, ADV7180_REG_CTRL_2, 0x40);
}
--
2.25.1
Powered by blists - more mailing lists