[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201112074308.71351-1-alexandru.ardelean@analog.com>
Date: Thu, 12 Nov 2020 09:43:03 +0200
From: Alexandru Ardelean <alexandru.ardelean@...log.com>
To: <linux-input@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: <dmitry.torokhov@...il.com>,
Alexandru Ardelean <alexandru.ardelean@...log.com>
Subject: [PATCH v2 0/5] Input: adp5589: cleanup and use device-managed functions
This change-set does a cleanup of the driver to use device-managed
functions. The error & exit paths are simplified, and some potential
leaks should be removed.
Changelog v1 -> v2:
* https://lore.kernel.org/linux-input/20201111084833.40995-1-alexandru.ardelean@analog.com/T/#t
* dropped patch: 'Input: adp5589: use a single variable for error in probe'
* for patch 'Input: adp5589: use devm_add_action_or_reset() for register clear'
moved devm_add_action_or_reset() right after switch statement;
using 'error' variable to check for error condition
Alexandru Ardelean (5):
Input: adp5589: use devm_kzalloc() to allocate the kpad object
Input: adp5589: use device-managed function in adp5589_keypad_add()
Input: adp5589: remove setup/teardown hooks for gpios
Input: adp5589: use devm_gpiochip_add_data() for gpios
Input: adp5589: use devm_add_action_or_reset() for register clear
drivers/input/keyboard/adp5589-keys.c | 120 ++++++--------------------
include/linux/input/adp5589.h | 7 --
2 files changed, 27 insertions(+), 100 deletions(-)
--
2.17.1
Powered by blists - more mailing lists