diff options
Diffstat (limited to 'drivers/input/keyboard/adp5589-keys.c')
-rw-r--r-- | drivers/input/keyboard/adp5589-keys.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/input/keyboard/adp5589-keys.c b/drivers/input/keyboard/adp5589-keys.c index 74e60321338..67d12b3427c 100644 --- a/drivers/input/keyboard/adp5589-keys.c +++ b/drivers/input/keyboard/adp5589-keys.c | |||
@@ -464,7 +464,7 @@ static int adp5589_gpio_direction_output(struct gpio_chip *chip, | |||
464 | return ret; | 464 | return ret; |
465 | } | 465 | } |
466 | 466 | ||
467 | static int __devinit adp5589_build_gpiomap(struct adp5589_kpad *kpad, | 467 | static int adp5589_build_gpiomap(struct adp5589_kpad *kpad, |
468 | const struct adp5589_kpad_platform_data *pdata) | 468 | const struct adp5589_kpad_platform_data *pdata) |
469 | { | 469 | { |
470 | bool pin_used[ADP5589_MAXGPIO]; | 470 | bool pin_used[ADP5589_MAXGPIO]; |
@@ -496,7 +496,7 @@ static int __devinit adp5589_build_gpiomap(struct adp5589_kpad *kpad, | |||
496 | return n_unused; | 496 | return n_unused; |
497 | } | 497 | } |
498 | 498 | ||
499 | static int __devinit adp5589_gpio_add(struct adp5589_kpad *kpad) | 499 | static int adp5589_gpio_add(struct adp5589_kpad *kpad) |
500 | { | 500 | { |
501 | struct device *dev = &kpad->client->dev; | 501 | struct device *dev = &kpad->client->dev; |
502 | const struct adp5589_kpad_platform_data *pdata = dev->platform_data; | 502 | const struct adp5589_kpad_platform_data *pdata = dev->platform_data; |
@@ -550,7 +550,7 @@ static int __devinit adp5589_gpio_add(struct adp5589_kpad *kpad) | |||
550 | return 0; | 550 | return 0; |
551 | } | 551 | } |
552 | 552 | ||
553 | static void __devexit adp5589_gpio_remove(struct adp5589_kpad *kpad) | 553 | static void adp5589_gpio_remove(struct adp5589_kpad *kpad) |
554 | { | 554 | { |
555 | struct device *dev = &kpad->client->dev; | 555 | struct device *dev = &kpad->client->dev; |
556 | const struct adp5589_kpad_platform_data *pdata = dev->platform_data; | 556 | const struct adp5589_kpad_platform_data *pdata = dev->platform_data; |
@@ -641,8 +641,7 @@ static irqreturn_t adp5589_irq(int irq, void *handle) | |||
641 | return IRQ_HANDLED; | 641 | return IRQ_HANDLED; |
642 | } | 642 | } |
643 | 643 | ||
644 | static int __devinit adp5589_get_evcode(struct adp5589_kpad *kpad, | 644 | static int adp5589_get_evcode(struct adp5589_kpad *kpad, unsigned short key) |
645 | unsigned short key) | ||
646 | { | 645 | { |
647 | int i; | 646 | int i; |
648 | 647 | ||
@@ -655,7 +654,7 @@ static int __devinit adp5589_get_evcode(struct adp5589_kpad *kpad, | |||
655 | return -EINVAL; | 654 | return -EINVAL; |
656 | } | 655 | } |
657 | 656 | ||
658 | static int __devinit adp5589_setup(struct adp5589_kpad *kpad) | 657 | static int adp5589_setup(struct adp5589_kpad *kpad) |
659 | { | 658 | { |
660 | struct i2c_client *client = kpad->client; | 659 | struct i2c_client *client = kpad->client; |
661 | const struct adp5589_kpad_platform_data *pdata = | 660 | const struct adp5589_kpad_platform_data *pdata = |
@@ -820,7 +819,7 @@ static int __devinit adp5589_setup(struct adp5589_kpad *kpad) | |||
820 | return 0; | 819 | return 0; |
821 | } | 820 | } |
822 | 821 | ||
823 | static void __devinit adp5589_report_switch_state(struct adp5589_kpad *kpad) | 822 | static void adp5589_report_switch_state(struct adp5589_kpad *kpad) |
824 | { | 823 | { |
825 | int gpi_stat_tmp, pin_loc; | 824 | int gpi_stat_tmp, pin_loc; |
826 | int i; | 825 | int i; |
@@ -860,8 +859,8 @@ static void __devinit adp5589_report_switch_state(struct adp5589_kpad *kpad) | |||
860 | input_sync(kpad->input); | 859 | input_sync(kpad->input); |
861 | } | 860 | } |
862 | 861 | ||
863 | static int __devinit adp5589_probe(struct i2c_client *client, | 862 | static int adp5589_probe(struct i2c_client *client, |
864 | const struct i2c_device_id *id) | 863 | const struct i2c_device_id *id) |
865 | { | 864 | { |
866 | struct adp5589_kpad *kpad; | 865 | struct adp5589_kpad *kpad; |
867 | const struct adp5589_kpad_platform_data *pdata = | 866 | const struct adp5589_kpad_platform_data *pdata = |
@@ -1045,7 +1044,7 @@ err_free_mem: | |||
1045 | return error; | 1044 | return error; |
1046 | } | 1045 | } |
1047 | 1046 | ||
1048 | static int __devexit adp5589_remove(struct i2c_client *client) | 1047 | static int adp5589_remove(struct i2c_client *client) |
1049 | { | 1048 | { |
1050 | struct adp5589_kpad *kpad = i2c_get_clientdata(client); | 1049 | struct adp5589_kpad *kpad = i2c_get_clientdata(client); |
1051 | 1050 | ||
@@ -1104,7 +1103,7 @@ static struct i2c_driver adp5589_driver = { | |||
1104 | .pm = &adp5589_dev_pm_ops, | 1103 | .pm = &adp5589_dev_pm_ops, |
1105 | }, | 1104 | }, |
1106 | .probe = adp5589_probe, | 1105 | .probe = adp5589_probe, |
1107 | .remove = __devexit_p(adp5589_remove), | 1106 | .remove = adp5589_remove, |
1108 | .id_table = adp5589_id, | 1107 | .id_table = adp5589_id, |
1109 | }; | 1108 | }; |
1110 | 1109 | ||