From patchwork Thu Mar 7 13:49:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13585701 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6BEB6C54798 for ; Thu, 7 Mar 2024 13:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LI26GTaFO664lZBZpir8KGwam5yeClGNl5kis46Lr8Q=; b=bKwP1MJOywTgH9 02J0uWl9JQDAInnz5LbRE3V8tStHKha0+1aFeMfp9FpUaNmlU9pYLytsmFyAFfX6d08WLusgy981+ tqo/GENX1JzECuXQqJ+So5kVJYXXG3dA1Y5FSzv1vWxySD4z7UZM8UV6LLbOMXsygOYeIy4Hu9bAe ASZ5qyvCicfd4nq6Q8g91iLMlqoUal7+VK4Po4e19rTN2/x0NddaT9OjFWPL/CRUSaRX+rucatNrH jQppGkPg8PEixFO8hk1k9TXz6VsZ21y6ZKZRe/jmNhFlh4HONwF+eKcJzlxHeuKZTrdhN7sSVFSSN grBAP01hS4Ajo1NC8PZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1riE9Y-00000004ryA-19pk; Thu, 07 Mar 2024 13:51:20 +0000 Received: from mgamail.intel.com ([198.175.65.9]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1riE9W-00000004rw4-0YGd for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2024 13:51:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709819478; x=1741355478; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=bL9mDQ/xotPoSr7x3SNEZqXU0V7jH69ACGEzpPlvSM8=; b=R1zqqHQ8rjTnEICD4zuZUVCp45Lm5BJCbSyeVNwJUwFBSFnqSLq+flBn nw1zmP95iCneMMABg8ACGJ/utRBXVSIaVTp/BJ5g6IK9+PNdA3S3FBWDc bOcLM48eLDd9NfkWrPfqXtBf2qb/E/XAd1JIDGY7fua8YrFhzBWPIpH5h FEKCDqykqtaP3oCM9lqmKgnAr04eMQZPtkDLvpLYwBQIXILQXImIS0XNu I6pCtPorqgwbPsb5+Ws2rSCV9Peu0xyg9BFH2PCkzj+yIvTwimzNurctG V5t9Bbcz1UlqInpujGqEpw02pbf2m3QgKtbwcVoRyz9LGT6NcECsuMgmg g==; X-IronPort-AV: E=McAfee;i="6600,9927,11005"; a="26960302" X-IronPort-AV: E=Sophos;i="6.07,211,1708416000"; d="scan'208";a="26960302" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2024 05:51:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11005"; a="937046157" X-IronPort-AV: E=Sophos;i="6.07,211,1708416000"; d="scan'208";a="937046157" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 07 Mar 2024 05:51:12 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id EB5133F1; Thu, 7 Mar 2024 15:51:10 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Linus Walleij , Bartosz Golaszewski , Jonathan Corbet , Alex Shi , Yanteng Si , Hu Haowen <2023002089@link.tyut.edu.cn>, Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King Subject: [PATCH v1 0/3] gpiolib: Get rid of gpio_free_array()/gpio_request_array() Date: Thu, 7 Mar 2024 15:49:02 +0200 Message-ID: <20240307135109.3778316-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240307_055118_239088_8ED86932 X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are only two users left of the gpio_free_array()/gpio_request_array(). Convert them to very basic legacy APIs (it requires much less work for now) and drop no more used gpio_free_array()/gpio_request_array(). (Not tested) Andy Shevchenko (3): ARM: pxa: spitz: Open code gpio_request_array() ARM: sa1100: Open code gpio_request_array() gpiolib: legacy: Remove unused gpio_request_array() and gpio_free_array() Documentation/driver-api/gpio/legacy.rst | 16 ------- .../zh_CN/driver-api/gpio/legacy.rst | 16 ------- Documentation/translations/zh_TW/gpio.txt | 17 ------- arch/arm/mach-pxa/spitz_pm.c | 22 +++++---- arch/arm/mach-sa1100/h3600.c | 47 ++++++++++++++----- drivers/gpio/gpiolib-legacy.c | 39 --------------- include/linux/gpio.h | 15 ------ 7 files changed, 48 insertions(+), 124 deletions(-) Reviewed-by: Linus Walleij