hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/input/touchscreen/gslx680_pad.c
....@@ -540,12 +540,11 @@
540540 {
541541 return single_open(file,gsl_config_read_proc,NULL);
542542 }
543
-static const struct file_operations gsl_seq_fops = {
544
- .open = gsl_server_list_open,
545
- .read = seq_read,
546
- .release = single_release,
547
- .write = gsl_config_write_proc,
548
- .owner = THIS_MODULE,
543
+static const struct proc_ops gsl_seq_fops = {
544
+ .proc_open = gsl_server_list_open,
545
+ .proc_read = seq_read,
546
+ .proc_release = single_release,
547
+ .proc_write = gsl_config_write_proc,
549548 };
550549 #endif
551550
....@@ -1043,15 +1042,15 @@
10431042 ts->wake_pin=of_get_named_gpio_flags(np, "reset-gpio", 0, &wake_flags);
10441043
10451044 ret = of_property_read_u32(np, "chip_id", &gsl_chip_id);
1046
- if(ret)
1045
+ if (ret)
10471046 gsl_chip_id = GSL680;
10481047
1049
- dev_info(&ts->client->dev, "[tp-gsl] gsl_chip_id =[%d] \n",gsl_chip_id);
1050
- for(i=0; i<ARRAY_SIZE(gsl_chip_info); i++) {
1051
- if (gsl_chip_info[i].chip_id == gsl_chip_id) {
1052
- ts->gsl_chip_info = &gsl_chip_info[i];
1053
- break;
1054
- }
1048
+ dev_info(&ts->client->dev, "[tp-gsl] gsl_chip_id =[%d] \n",gsl_chip_id);
1049
+ for (i=0; i<ARRAY_SIZE(gsl_chip_info); i++) {
1050
+ if (gsl_chip_info[i].chip_id == gsl_chip_id) {
1051
+ ts->gsl_chip_info = &gsl_chip_info[i];
1052
+ break;
1053
+ }
10551054 }
10561055
10571056 if (gpio_is_valid(ts->wake_pin)) {