Loading drivers/media/platform/msm/camera/cam_sensor_module/cam_flash/cam_flash_dev.c +5 −1 Original line number Diff line number Diff line /* Copyright (c) 2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -41,6 +41,8 @@ static int32_t cam_flash_driver_cmd(struct cam_flash_ctrl *fctrl, CAM_ERR(CAM_FLASH, "Cannot apply Acquire dev: Prev state: %d", fctrl->flash_state); rc = -EINVAL; goto release_mutex; } if (fctrl->bridge_intf.device_hdl != -1) { Loading Loading @@ -161,6 +163,8 @@ static int32_t cam_flash_driver_cmd(struct cam_flash_ctrl *fctrl, CAM_WARN(CAM_FLASH, "Cannot apply Stop dev: Prev state is: %d", fctrl->flash_state); rc = -EINVAL; goto release_mutex; } rc = cam_flash_stop_dev(fctrl); Loading Loading
drivers/media/platform/msm/camera/cam_sensor_module/cam_flash/cam_flash_dev.c +5 −1 Original line number Diff line number Diff line /* Copyright (c) 2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -41,6 +41,8 @@ static int32_t cam_flash_driver_cmd(struct cam_flash_ctrl *fctrl, CAM_ERR(CAM_FLASH, "Cannot apply Acquire dev: Prev state: %d", fctrl->flash_state); rc = -EINVAL; goto release_mutex; } if (fctrl->bridge_intf.device_hdl != -1) { Loading Loading @@ -161,6 +163,8 @@ static int32_t cam_flash_driver_cmd(struct cam_flash_ctrl *fctrl, CAM_WARN(CAM_FLASH, "Cannot apply Stop dev: Prev state is: %d", fctrl->flash_state); rc = -EINVAL; goto release_mutex; } rc = cam_flash_stop_dev(fctrl); Loading