mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
modules:tfa98xx:delete time printk
cherrypick from (CR) - fix compile fail. error: 'start_time' may be used uninitialized in this function [-Werror=maybe-uninitialized] - just printk start time. delete it. Change-Id: I846597f1227e958b1360d0cfd61756a67e56c9a1 Signed-off-by: liaohj <liaohj@lenovo.com> Reviewed-on: https://gerrit.mot.com/1260694 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Minghui Wei <weimh1@motorola.com> Reviewed-by: Wanlong Zhou <zhouwl@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key (cherry picked from commit b9b7b207c4b80f8e99ecbd0dcf0573525dc88a66) Reviewed-on: https://gerrit.mot.com/1393913 Reviewed-by: Hujun Liao <liaohj@motorola.com>
This commit is contained in:
parent
7385bf598a
commit
bf99337c22
1 changed files with 0 additions and 14 deletions
|
|
@ -226,23 +226,9 @@ static enum tfa_error tfa98xx_write_re25(struct tfa_device *tfa, int value)
|
|||
static enum tfa_error tfa98xx_tfa_start(struct tfa98xx *tfa98xx, int next_profile, int vstep)
|
||||
{
|
||||
enum tfa_error err;
|
||||
ktime_t start_time, stop_time;
|
||||
u64 delta_time;
|
||||
|
||||
if (trace_level & 8) {
|
||||
start_time = ktime_get_boottime();
|
||||
}
|
||||
|
||||
err = tfa_dev_start(tfa98xx->tfa, next_profile, vstep);
|
||||
|
||||
if (trace_level & 8) {
|
||||
stop_time = ktime_get_boottime();
|
||||
delta_time = ktime_to_ns(ktime_sub(stop_time, start_time));
|
||||
do_div(delta_time, 1000);
|
||||
dev_dbg(&tfa98xx->i2c->dev, "tfa_dev_start(%d,%d) time = %lld us\n",
|
||||
next_profile, vstep, delta_time);
|
||||
}
|
||||
|
||||
if ((err == tfa_error_ok) && (tfa98xx->set_mtp_cal)) {
|
||||
enum tfa_error err_cal;
|
||||
err_cal = tfa98xx_write_re25(tfa98xx->tfa, tfa98xx->cal_data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue