Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba08fc5b authored by Om Parkash's avatar Om Parkash Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Remove unnecessary logs in IRLED driver



Remove unnecessary logs in IRLED driver

Change-Id: Ice0eb8f3d066b4f5a3d262cb211973d348dcabb4
Signed-off-by: default avatarOm Parkash <oparkash@codeaurora.org>
parent fbd9ceb4
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ static int cam_ir_cut_off(struct cam_ir_led_ctrl *ictrl)
static int cam_ir_led_set_intensity(struct cam_ir_led_ctrl *ictrl,
			uint32_t ir_led_intensity)
{
	CAM_INFO(CAM_IR_LED, "ir_led_intensity=%d", ir_led_intensity);
	CAM_DBG(CAM_IR_LED, "ir_led_intensity=%d", ir_led_intensity);
	switch (ir_led_intensity) {
	case IRLED_INTENSITY_OFF:
		gpio_direction_output(
@@ -165,17 +165,17 @@ int cam_ir_led_parser(struct cam_ir_led_ctrl *ictrl, void *arg)

	switch (csl_packet->header.op_code & 0xFFFFFF) {
	case CAM_IR_LED_PACKET_OPCODE_ON:
		CAM_INFO(CAM_IR_LED, ":CAM_IR_LED_PACKET_OPCODE_ON");
		CAM_DBG(CAM_IR_LED, ":CAM_IR_LED_PACKET_OPCODE_ON");
		cam_ir_cut_on(ictrl);
		cam_ir_led_set_intensity(ictrl,
				cam_ir_led_info->ir_led_intensity);
		break;
	case CAM_IR_LED_PACKET_OPCODE_OFF:
		CAM_INFO(CAM_IR_LED, "CAM_IR_LED_PACKET_OPCODE_OFF");
		CAM_DBG(CAM_IR_LED, "CAM_IR_LED_PACKET_OPCODE_OFF");
		cam_ir_cut_off(ictrl);
		break;
	case CAM_PKT_NOP_OPCODE:
		CAM_INFO(CAM_IR_LED, "CAM_IR_LED: CAM_PKT_NOP_OPCODE");
		CAM_DBG(CAM_IR_LED, "CAM_IR_LED: CAM_PKT_NOP_OPCODE");
		break;
	default:
		CAM_ERR(CAM_IR_LED, "Wrong Opcode : %d",
+0 −1
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ static int32_t cam_ir_led_driver_cmd(struct cam_ir_led_ctrl *ictrl,
	int rc = 0;
	struct cam_control *cmd = (struct cam_control *)arg;

		CAM_ERR(CAM_IR_LED, "%s, IN", __func__);
	if (!ictrl || !arg) {
		CAM_ERR(CAM_IR_LED, "ictrl/arg is NULL with arg:%pK ictrl%pK",
			ictrl, arg);