mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
synaptics_i2c: Compilation errors
Added grouping for if condition
in switch case to avoid -Wmisleading-indentation warning from
GCC 4.8.3.
warning: misleading indentation; statement
is not part of the previous 'if' [-Wmisleading-indentation] error,
forbidden warning: synaptics_dsx_i2c.c:2896
Change-Id: Ib52c5ac2d507165468e826bc57ba0edb8ef0e96c
Signed-off-by: maheshmk <maheshmk@motorola.com>
Reviewed-on: https://gerrit.mot.com/1880925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
parent
ffce9d9937
commit
918e5b410d
1 changed files with 8 additions and 4 deletions
|
|
@ -2888,11 +2888,13 @@ static void synaptics_dsx_sensor_state(struct synaptics_rmi4_data *rmi4_data,
|
|||
case STATE_SUSPEND:
|
||||
synaptics_dsx_wait_for_idle(rmi4_data);
|
||||
|
||||
if (!rmi4_data->in_bootloader)
|
||||
if (!rmi4_data->in_bootloader) {
|
||||
synaptics_dsx_apply_modifiers(rmi4_data, STATE_SUSPEND);
|
||||
}
|
||||
|
||||
if (!rmi4_data->suspend_is_wakeable)
|
||||
if (!rmi4_data->suspend_is_wakeable) {
|
||||
synaptics_rmi4_irq_enable(rmi4_data, false);
|
||||
}
|
||||
break;
|
||||
|
||||
case STATE_ACTIVE:
|
||||
|
|
@ -2906,8 +2908,9 @@ static void synaptics_dsx_sensor_state(struct synaptics_rmi4_data *rmi4_data,
|
|||
pr_err("Active state without input device\n");
|
||||
}
|
||||
|
||||
if (gStat.enabled)
|
||||
if (gStat.enabled) {
|
||||
statistics_start_timekeeping(rmi4_data);
|
||||
}
|
||||
break;
|
||||
|
||||
case STATE_STANDBY:
|
||||
|
|
@ -2948,8 +2951,9 @@ static void synaptics_dsx_sensor_state(struct synaptics_rmi4_data *rmi4_data,
|
|||
pr_notice("failed to clear interrupt\n");
|
||||
}
|
||||
|
||||
if (gStat.enabled)
|
||||
if (gStat.enabled) {
|
||||
statistics_stop_timekeeping();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue