From: Daeseok Youn Date: Wed, 12 Apr 2017 18:20:49 +0000 (+0100) Subject: staging: atomisp: move mipi_info assignment to next line in __get_asd_from_port() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5eb328740de1425f95fc5ff34dac26f3850c3711;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: atomisp: move mipi_info assignment to next line in __get_asd_from_port() The line which is initializing mipi_info variable is too long to read. It would be placed in next line. Signed-off-by: Daeseok Youn Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c index d98a6eac9cc2..a8614a9a5dd9 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c @@ -533,9 +533,11 @@ __get_asd_from_port(struct atomisp_device *isp, mipi_port_ID_t port) /* Check which isp subdev to send eof */ for (i = 0; i < isp->num_of_streams; i++) { struct atomisp_sub_device *asd = &isp->asd[i]; - struct camera_mipi_info *mipi_info = - atomisp_to_sensor_mipi_info( - isp->inputs[asd->input_curr].camera); + struct camera_mipi_info *mipi_info; + + mipi_info = atomisp_to_sensor_mipi_info( + isp->inputs[asd->input_curr].camera); + if (asd->streaming == ATOMISP_DEVICE_STREAMING_ENABLED && __get_mipi_port(isp, mipi_info->port) == port) { return asd;