summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/dma_port.h
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-11-19 07:41:46 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2020-11-19 08:18:24 +0100
commit760a1219ff264c4bb68ae561bf4d5eea5daac8dc (patch)
tree5e28902688a0ec92a5637a0b037f84e1824d7093 /drivers/thunderbolt/dma_port.h
parentInput: adp5589-keys - use devm_kzalloc() to allocate the kpad object (diff)
downloadlinux-760a1219ff264c4bb68ae561bf4d5eea5daac8dc.tar.xz
linux-760a1219ff264c4bb68ae561bf4d5eea5daac8dc.zip
Input: adp5589-keys - use device-managed function in adp5589_keypad_add()
This change makes use of the devm_input_allocate_device() function, which gets rid of the input_free_device() and input_unregister_device() calls. When a device is allocated via input_allocate_device(), the input_register_device() call will also be device-managed, so there is no longer need to manually call unregister. Also, the irq is allocated with the devm_request_threaded_irq(), so with these two changes, the adp5589_keypad_remove() function is no longer needed. This cleans up the error & exit paths. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Link: https://lore.kernel.org/r/20201112074308.71351-3-alexandru.ardelean@analog.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/thunderbolt/dma_port.h')
0 files changed, 0 insertions, 0 deletions