From patchwork Mon Feb 13 15:45:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 653401 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF21AC636CC for ; Mon, 13 Feb 2023 15:45:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbjBMPpC (ORCPT ); Mon, 13 Feb 2023 10:45:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbjBMPo7 (ORCPT ); Mon, 13 Feb 2023 10:44:59 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE3E4193ED; Mon, 13 Feb 2023 07:44:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676303098; x=1707839098; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xlBf3u2jIImE6JHKLtR/28/lGgiDloE+1ryfEFZJMy0=; b=bJ0a39FmTWi6vMrRwXso1Ix2IoUOj6ddqF1gDCjKp3vQ+Aw3lduE/GiR MiaxMsNV2yndYqEcvpH3qbDV4j2GTUrFi9B3qv2cJV1KIzJ1V2Rx5bH+A rLC/sT3WJkWILaV+iY0rfSChl+5OjuzFqu//8d+VwrUdJBLnnA0nPQqFP pGWuV1wJgcg5DnjTT2ILDtH1+NCF1QA2/RmJOWrbYYqJ3U2mRBh7RDa+W 6Z6wjkODv7WcCNCVVieU3Jkzxn8HSABtZcZRXhYqOBuFOfFLnekLJRz66 5h1OuZDum2YPD3mPMDZ4jgLcOPmCGkfzDyokR2T5FIZeoFT8S50pMDDy1 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10620"; a="318938337" X-IronPort-AV: E=Sophos;i="5.97,294,1669104000"; d="scan'208";a="318938337" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2023 07:44:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10620"; a="618682262" X-IronPort-AV: E=Sophos;i="5.97,294,1669104000"; d="scan'208";a="618682262" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga003.jf.intel.com with ESMTP; 13 Feb 2023 07:44:55 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 0D42E1A6; Mon, 13 Feb 2023 17:45:34 +0200 (EET) From: Andy Shevchenko To: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ludovic Desroches , Linus Walleij , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Andy Shevchenko Subject: [PATCH v2 0/5] pinctrl: at91: Cleanups Date: Mon, 13 Feb 2023 17:45:27 +0200 Message-Id: <20230213154532.32992-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The kasprintf() patch makes me look into the driver code and besides missed fix, there is a room to improve. Hence this series. Compile tested only. Changes in v2: - fixed compilation errors (LKP) Andy Shevchenko (5): pinctrl: at91: use devm_kasprintf() to avoid potential leaks (part 2) pinctrl: at91: Don't mix non-devm calls with devm ones pinctrl: at91: Use of_device_get_match_data() pinctrl: at91: Use dev_err_probe() instead of custom messaging pinctrl: at91: Utilise temporary variable for struct device drivers/pinctrl/pinctrl-at91.c | 164 ++++++++++++++------------------- 1 file changed, 67 insertions(+), 97 deletions(-) Reviewed-by: Claudiu Beznea Tested-by: Claudiu Beznea