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

Commit 7af7aa10 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: sensor: Limiting error messages during sensor probe"

parents fc2d272e dee8bf66
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2019 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
@@ -1460,8 +1460,9 @@ int msm_camera_power_up(struct msm_camera_power_ctrl_t *ctrl,
		switch (power_setting->seq_type) {
		case SENSOR_CLK:
			if (power_setting->seq_val >= ctrl->clk_info_size) {
				pr_err_ratelimited("%s clk index %d >= max %zu\n",
				  __func__, power_setting->seq_val,
				pr_err_ratelimited("%s clk %d >=max %zu\n"
					, __func__,
					power_setting->seq_val,
					ctrl->clk_info_size);
				goto power_up_failed;
			}