Skip to content

Commit 00b6432

Browse files
pwnrazronettboots
authored andcommitted
goodix_driver_gt9886: core: small code style changes using checkpatch.pl
Signed-off-by: onettboots <blackcocopet@gmail.com>
1 parent 2e8f3d2 commit 00b6432

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

drivers/input/touchscreen/goodix_driver_gt9886/goodix_ts_core.c

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,7 @@ static int goodix_ts_convert_0x_data(const u8 *buf, int buf_size,
496496
continue;
497497

498498
if (temp_index >= m_size) {
499-
ts_err("exchange cfg data error, overflow,"
500-
"temp_index:%d,m_size:%d\n",
499+
ts_err("exchange cfg data error, overflow,temp_index:%d,m_size:%d\n",
501500
temp_index, m_size);
502501
return -EINVAL;
503502
}
@@ -835,6 +834,7 @@ static ssize_t udfps_pressed_show(struct device *dev,
835834
struct device_attribute *attr, char *buf)
836835
{
837836
struct goodix_ts_core *core_data = dev_get_drvdata(dev);
837+
838838
return scnprintf(buf, PAGE_SIZE, "%i\n", core_data->udfps_pressed);
839839
}
840840

@@ -843,6 +843,7 @@ static ssize_t udfps_enabled_store(struct device *dev,
843843
size_t count)
844844
{
845845
struct goodix_ts_core *core_data = dev_get_drvdata(dev);
846+
846847
core_data->udfps_enabled = buf[0] != '0';
847848

848849
core_data->gesture_enabled = core_data->double_tap_enabled | core_data->udfps_enabled;
@@ -856,13 +857,15 @@ static ssize_t udfps_enabled_show(struct device *dev,
856857
struct device_attribute *attr, char *buf)
857858
{
858859
struct goodix_ts_core *core_data = dev_get_drvdata(dev);
860+
859861
return scnprintf(buf, PAGE_SIZE, "%i\n", core_data->udfps_enabled);
860862
}
861863

862864
static ssize_t double_tap_pressed_show(struct device *dev,
863865
struct device_attribute *attr, char *buf)
864866
{
865867
struct goodix_ts_core *core_data = dev_get_drvdata(dev);
868+
866869
return scnprintf(buf, PAGE_SIZE, "%i\n", core_data->double_tap_pressed);
867870
}
868871

@@ -871,6 +874,7 @@ static ssize_t double_tap_enabled_store(struct device *dev,
871874
size_t count)
872875
{
873876
struct goodix_ts_core *core_data = dev_get_drvdata(dev);
877+
874878
core_data->double_tap_enabled = buf[0] != '0';
875879

876880
core_data->gesture_enabled = core_data->double_tap_enabled | core_data->udfps_enabled;
@@ -884,6 +888,7 @@ static ssize_t double_tap_enabled_show(struct device *dev,
884888
struct device_attribute *attr, char *buf)
885889
{
886890
struct goodix_ts_core *core_data = dev_get_drvdata(dev);
891+
887892
return scnprintf(buf, PAGE_SIZE, "%i\n", core_data->double_tap_enabled);
888893
}
889894

@@ -1174,7 +1179,7 @@ static inline irqreturn_t goodix_ts_threadirq_func(int irq, void *data)
11741179
r = ext_module->funcs->irq_event(core_data, ext_module);
11751180
ts_err("enter %s r=%d\n", __func__, r);
11761181
if (r == EVT_CANCEL_IRQEVT) {
1177-
/*ts_err("enter %s EVT_CANCEL_IRQEVT \n", __func__);*/
1182+
/*ts_err("enter %s EVT_CANCEL_IRQEVT\n", __func__);*/
11781183
mutex_unlock(&goodix_modules.mutex);
11791184
goto handled;
11801185
}
@@ -1264,6 +1269,7 @@ EXPORT_SYMBOL(goodix_ts_irq_enable);
12641269
static int goodix_ts_power_init(struct goodix_ts_core *core_data)
12651270
{
12661271
struct goodix_ts_board_data *ts_bdata;
1272+
12671273
ts_bdata = board_data(core_data);
12681274

12691275
gpio_direction_output(ts_bdata->reset_gpio, 0);
@@ -1963,15 +1969,11 @@ int goodix_ts_msm_drm_notifier_callback(struct notifier_block *self,
19631969
flush_workqueue(core_data->event_wq);
19641970

19651971
switch (blank) {
1966-
case MSM_DRM_BLANK_POWERDOWN:
1967-
goto suspend;
1968-
break;
1969-
case MSM_DRM_BLANK_LP:
1970-
goto suspend;
1971-
break;
1972-
case MSM_DRM_BLANK_UNBLANK:
1973-
goto resume;
1974-
break;
1972+
case MSM_DRM_BLANK_POWERDOWN:
1973+
case MSM_DRM_BLANK_LP:
1974+
goto suspend;
1975+
case MSM_DRM_BLANK_UNBLANK:
1976+
goto resume;
19751977
}
19761978
}
19771979

0 commit comments

Comments
 (0)