From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752675AbdKHOXx (ORCPT ); Wed, 8 Nov 2017 09:23:53 -0500 Received: from 11.mo3.mail-out.ovh.net ([87.98.184.158]:59139 "EHLO 11.mo3.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752625AbdKHOXu (ORCPT ); Wed, 8 Nov 2017 09:23:50 -0500 X-Greylist: delayed 1169 seconds by postgrey-1.27 at vger.kernel.org; Wed, 08 Nov 2017 09:23:50 EST From: Andi Shyti To: Dmitry Torokhov Cc: Michael Hennerich , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH v2 0/3] use managed functions for ad7897 driver Date: Wed, 8 Nov 2017 16:04:00 +0200 Message-Id: <20171108140403.727-1-andi@etezian.org> X-Mailer: git-send-email 2.15.0 X-Ovh-Tracer-Id: 1072701137825874586 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedttddrheelgdeitdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, after our discussion[*], I decided to do it a more properly by replacing in the touchscreen drivers the initialization functions with their related managed functions. I will slowly send patches for other drivers. The last patch is trivial, but somehow it bothers me, please feel free to reject it. Thanks, Andi [*] https://marc.info/?l=linux-input&m=150671805312148&w=2 v1 - v2 https://marc.info/?l=linux-kernel&m=150963732620135&w=2 - squashed all the patches that were switching to the managed resource allocation - removed the remove() function and used devm_add_action_or_reset for cleaning when exiting Andi Shyti (3): Input: ad7897 - use managed allocated resources Input: ad7897 - use devm_add_action_or_reset to disable the device Input: ad7897 - use separate error handling for different allocators drivers/input/touchscreen/ad7877.c | 65 ++++++++++++-------------------------- 1 file changed, 20 insertions(+), 45 deletions(-) -- 2.15.0