]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ad714x - convert to using managed resources
authorVaishali Thakkar <vthakkar1994@gmail.com>
Sat, 12 Sep 2015 18:08:34 +0000 (11:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 19 Sep 2015 18:42:39 +0000 (11:42 -0700)
commit1bdd9c6f2348b2e41cc7cde87bed68fab62e0585
tree7243da6644d37bff5cf4e856cfd0f47934500fd3
parente543e9543b9bd59c5d0fbbafb0a62210a68f681f
Input: ad714x - convert to using managed resources

Use managed resource functions devm_request_threaded_irq,
devm_inpute_allocate_device and devm_kzalloc to simplify error handling.
Also, remove use of input_unregister_device as input_register_device itself
handles it and works as resource managed function.

To be compatible with the change, various gotos are replaced with direct
returns, and unneeded labels are dropped. With these changes remove
ad714x_remove and corresponding calls of it as they are now redundant.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/ad714x-i2c.c
drivers/input/misc/ad714x-spi.c
drivers/input/misc/ad714x.c
drivers/input/misc/ad714x.h