.. | .. |
---|
540 | 540 | { |
---|
541 | 541 | return single_open(file,gsl_config_read_proc,NULL); |
---|
542 | 542 | } |
---|
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, |
---|
549 | 548 | }; |
---|
550 | 549 | #endif |
---|
551 | 550 | |
---|
.. | .. |
---|
1043 | 1042 | ts->wake_pin=of_get_named_gpio_flags(np, "reset-gpio", 0, &wake_flags); |
---|
1044 | 1043 | |
---|
1045 | 1044 | ret = of_property_read_u32(np, "chip_id", &gsl_chip_id); |
---|
1046 | | - if(ret) |
---|
| 1045 | + if (ret) |
---|
1047 | 1046 | gsl_chip_id = GSL680; |
---|
1048 | 1047 | |
---|
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 | + } |
---|
1055 | 1054 | } |
---|
1056 | 1055 | |
---|
1057 | 1056 | if (gpio_is_valid(ts->wake_pin)) { |
---|