mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
input: touchscreen: gslx680_pad: Fix compile warning
drivers/input/touchscreen/gslx680_pad.c:1045:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
1045 | if(ret)
| ^~
In file included from ./include/linux/device.h:15,
from drivers/input/touchscreen/gslx680_pad.c:15:
./include/linux/dev_printk.h:118:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
118 | _dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/input/touchscreen/gslx680_pad.c:1048:8: note: in expansion of macro 'dev_info'
1048 | dev_info(&ts->client->dev, "[tp-gsl] gsl_chip_id =[%d] \n",gsl_chip_id);
| ^~~~~~~~
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If4366c867ab6985e37708a4f89ed6d5460c74795
This commit is contained in:
@@ -1042,15 +1042,15 @@ static int gsl_ts_probe(struct i2c_client *client,
|
||||
ts->wake_pin=of_get_named_gpio_flags(np, "reset-gpio", 0, &wake_flags);
|
||||
|
||||
ret = of_property_read_u32(np, "chip_id", &gsl_chip_id);
|
||||
if(ret)
|
||||
if (ret)
|
||||
gsl_chip_id = GSL680;
|
||||
|
||||
dev_info(&ts->client->dev, "[tp-gsl] gsl_chip_id =[%d] \n",gsl_chip_id);
|
||||
for(i=0; i<ARRAY_SIZE(gsl_chip_info); i++) {
|
||||
if (gsl_chip_info[i].chip_id == gsl_chip_id) {
|
||||
ts->gsl_chip_info = &gsl_chip_info[i];
|
||||
break;
|
||||
}
|
||||
dev_info(&ts->client->dev, "[tp-gsl] gsl_chip_id =[%d] \n",gsl_chip_id);
|
||||
for (i=0; i<ARRAY_SIZE(gsl_chip_info); i++) {
|
||||
if (gsl_chip_info[i].chip_id == gsl_chip_id) {
|
||||
ts->gsl_chip_info = &gsl_chip_info[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (gpio_is_valid(ts->wake_pin)) {
|
||||
|
||||
Reference in New Issue
Block a user