From b7e087fff7a951f41bee288bd1a6fe8c51a4f4d9 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Tue, 8 Nov 2022 09:21:23 +0800 Subject: [PATCH] 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 Change-Id: If4366c867ab6985e37708a4f89ed6d5460c74795 --- drivers/input/touchscreen/gslx680_pad.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/input/touchscreen/gslx680_pad.c b/drivers/input/touchscreen/gslx680_pad.c index d61a5ec76e94..89262f8e9f29 100644 --- a/drivers/input/touchscreen/gslx680_pad.c +++ b/drivers/input/touchscreen/gslx680_pad.c @@ -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; igsl_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; igsl_chip_info = &gsl_chip_info[i]; + break; + } } if (gpio_is_valid(ts->wake_pin)) {