* [PATCH] media: atomisp: move trailing statements to next line
@ 2022-09-13 19:29 Ritwik Sahani
0 siblings, 0 replies; only message in thread
From: Ritwik Sahani @ 2022-09-13 19:29 UTC (permalink / raw)
Cc: Ritwik Sahani, Mauro Carvalho Chehab, Sakari Ailus,
Greg Kroah-Hartman, Arnd Bergmann, linux-media, linux-staging,
linux-kernel
Adhere to Linux kernel coding style.
Reported by checkpatch:
ERROR: trailing statements should be on next line
Signed-off-by: Ritwik Sahani <ritwik.shn.dev@gmail.com>
---
.../hive_isp_css_common/host/input_system.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c
index 712e01c37870..4b426d938586 100644
--- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c
+++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c
@@ -878,7 +878,8 @@ static input_system_err_t input_system_configure_channel(
return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
}
- if (error != INPUT_SYSTEM_ERR_NO_ERROR) return error;
+ if (error != INPUT_SYSTEM_ERR_NO_ERROR)
+ return error;
// Input switch channel configurations must be combined in united config.
config.input_switch_cfg.hsync_data_reg[channel.source_cfg.csi_cfg.csi_port * 2]
=
@@ -1586,13 +1587,15 @@ static input_system_err_t input_system_configure_channel_sensor(
status = set_source_type(&config.source_type, channel.source_type,
&config.source_type_flags);
- if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status;
+ if (status != INPUT_SYSTEM_ERR_NO_ERROR)
+ return status;
// Check for conflicts on source (implicitly on multicast, capture unit and input buffer).
status = set_csi_cfg(&config.csi_value[port], &channel.source_cfg.csi_cfg,
&config.csi_flags[port]);
- if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status;
+ if (status != INPUT_SYSTEM_ERR_NO_ERROR)
+ return status;
switch (channel.source_cfg.csi_cfg.buffering_mode) {
case INPUT_SYSTEM_FIFO_CAPTURE:
@@ -1601,7 +1604,8 @@ static input_system_err_t input_system_configure_channel_sensor(
mux = INPUT_SYSTEM_MIPI_PORT0 + port;
status = input_system_multiplexer_cfg(&config.multiplexer, mux,
&config.multiplexer_flags);
- if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status;
+ if (status != INPUT_SYSTEM_ERR_NO_ERROR)
+ return status;
config.multicast[port] = INPUT_SYSTEM_CSI_BACKEND;
// Shared resource, so it should be blocked.
@@ -1616,7 +1620,8 @@ static input_system_err_t input_system_configure_channel_sensor(
mux = INPUT_SYSTEM_ACQUISITION_UNIT;
status = input_system_multiplexer_cfg(&config.multiplexer, mux,
&config.multiplexer_flags);
- if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status;
+ if (status != INPUT_SYSTEM_ERR_NO_ERROR)
+ return status;
config.multicast[port] = INPUT_SYSTEM_INPUT_BUFFER;
// Shared resource, so it should be blocked.
@@ -1631,7 +1636,8 @@ static input_system_err_t input_system_configure_channel_sensor(
mux = INPUT_SYSTEM_ACQUISITION_UNIT;
status = input_system_multiplexer_cfg(&config.multiplexer, mux,
&config.multiplexer_flags);
- if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status;
+ if (status != INPUT_SYSTEM_ERR_NO_ERROR)
+ return status;
config.multicast[port] = INPUT_SYSTEM_INPUT_BUFFER;
// Shared resource, so it should be blocked.
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-13 19:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13 19:29 [PATCH] media: atomisp: move trailing statements to next line Ritwik Sahani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).