Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp567752lqi; Thu, 7 Mar 2024 05:51:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX11BSnUKU0+cWRHsd60IBb+0YA9btlA35l3q/ybXZA1bH5jrsBbbuOch/yK+ztd6swaVso1fSPswztTgqcQ35/WQt0CMEOuxcSPmXvPA== X-Google-Smtp-Source: AGHT+IHXGES1yk7b6HvlweiK3zL6hM0CN8ynqOmSeCEEGyPLbnaov2qgaxJrny8Tk36DFbYSRRAQ X-Received: by 2002:a17:906:12db:b0:a44:dd0f:5b0b with SMTP id l27-20020a17090612db00b00a44dd0f5b0bmr8938898ejb.19.1709819516380; Thu, 07 Mar 2024 05:51:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709819516; cv=pass; d=google.com; s=arc-20160816; b=sTgIC3+PVhqCmlLI/WV6Q/mKEcfC4KDy/7L5N2M8mwciBGXwtmRGUUfvzxtNDgOXN2 os6ufMaqZe28QvHCVH0SKRZXoQVXfCSTqi86Zyk45Rul3Gcf+FP913dXuevRNJOmYs/v 92FFITaVg05hterB94rMC2+vGNT1A16dsvMzWtpdrJkTzY2opGjpVDH9pQgQYkekE3y3 7nhZJDIAkz0n2HppAFVSPd7Kc0wr6ea8cjW1rrp5hd4mcWE5lovwChPXVoSQ40pvNRNk hgoV8bFuoXr4Vxik7JPfuYZlhpcpkIafiDdss7dbjHpitZ/DhNwLbpwHfdoQdO14RnSz 0XEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=UXhg3d/T4vgMfowTRjQYCiflXn8jJFtxeh3HonLRJ1Y=; fh=6smEBSJi9xRPWrzBL1a0NnXrPDlvFMd3PaVGC7v+4gQ=; b=GWrD5/AVhUQ9E/+0xCwEOTX+bYr5ZPHZhI/p5sDgANme5qif3ih7Z+f9Yh+3KBcl/b q0nrkn0xN8EMSNjpl90WSd4Vj7Xyl3OcqTycDZ7ai89J1EAzTz84D66q8b9b1cETStIj BwrZ8/TpBhvk5h5xl4CGv7I0r8D8NaGk/KOWrTp+NlGlcD8Enjn+0A1jT66BL9AQo3K3 Wk9c7bB12kD12HXQ/CVrgHJHrwE3CEJZxVpQG+3YXxipPKLNhkKiCylb2fkQjlo6/Wqa GaERSuObCgx7zl9NI9UE0XxMCIS25J9aFog/WDEdv/Txch9QjSlBFS33BS+kPjofHstu Jvjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DUC8HjvR; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-95660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id do6-20020a170906c10600b00a45ab47d3fasi2488375ejc.75.2024.03.07.05.51.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 05:51:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DUC8HjvR; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-95660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B5D391F223BD for ; Thu, 7 Mar 2024 13:51:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF5D212DD83; Thu, 7 Mar 2024 13:51:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DUC8HjvR" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80C2C12AAFD; Thu, 7 Mar 2024 13:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709819478; cv=none; b=PG5Q5EhmiOdev7Xn5q7IAxoL3sj26sgyD/5G7XYoQ4bf5TGUyO62u0yIy7b1ntAUlofTbItBfV1vAD9DgY0mKNyUSQYxEV9H2KjfH4ZLZCh8IKAxIsvh+IIwXNT3CnmUAaSnTj3Tidzy/efKgGsfV6AFgF/JXMgoTc+A0hCtGjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709819478; c=relaxed/simple; bh=bL9mDQ/xotPoSr7x3SNEZqXU0V7jH69ACGEzpPlvSM8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uDD3mv3opGOAGSWYc+QwQbEPotOfh8b8aPaRYIDzR4N8A73+YOujNRFIXDsvcLZjCuenz03mojZE3oodW45gl/ez+KOxu/Qtf/Umm2tl+f+8/ESpZjFmttb4GAd+5M07zqVCnOCtTpytGb4LPriLYGPq7FlmgCz1NSsSVaowp74= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DUC8HjvR; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709819477; x=1741355477; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=bL9mDQ/xotPoSr7x3SNEZqXU0V7jH69ACGEzpPlvSM8=; b=DUC8HjvRQaRc+ApwQb34RIY0TnFc1AS4qrtoEzGtXWk15ZEADSStRdGq KXmBZbRWTk8LUljvyH3K/cFBPwpDrYnPumYIuduxhn+Rq+ZQC2ytnQGNl FWpaMqSTs6FxYCgGU2N4az8Ny+iXTj2rcRHxxBIkFRUgg7G88uYheJjGg XPYa0V4jFq32nh8sXe/6VFvbDkjtx5ODkQCed9LlMuecYv808xDY9n0KU ThWFUz839fUZSdIIz2xkDjjgrAtp8g1RDIhI/LX9q0fNIfBSWlzUduHtU NAO8zEPgI6bKsGI83bwitWTj5KetLSwZ4HW+c31OPEzVnWkRfTmm670a8 g==; X-IronPort-AV: E=McAfee;i="6600,9927,11005"; a="26960300" X-IronPort-AV: E=Sophos;i="6.07,211,1708416000"; d="scan'208";a="26960300" 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(-) -- 2.43.0.rc1.1.gbec44491f096