Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp697508pxk; Sun, 30 Aug 2020 20:23:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws0iy00CnL6+Ih1wITZlu1IvKTpAMV/8LxF+q3WxIqwJ6XvV429l9ZNsO7n+TqQQzrgCKK X-Received: by 2002:a17:906:1993:: with SMTP id g19mr9616916ejd.431.1598844227740; Sun, 30 Aug 2020 20:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598844227; cv=none; d=google.com; s=arc-20160816; b=Kde/BRhz2nvgquw2bgGx/DDrBxB4b7LOQvajTGO4qjKigI2a9TDF2h1hC5RzzfchGM M6qX8qT0kHPHo68KYShtI4EBkz0rPiO8rVRWsTTORzwG8MBO67n6yacbFIiRsRgqW55h QemPf6F8+iYe5Z5D3OC9VmthjSPtshEugIVyz56Yytk7XQjV2SHBrnqsposBoeUUB54o 5x6AGOeHveVYpEXI//HNQH6Ta2y+57VPhOe9zZtJqH39nERDCCKF8Ny+x7pVbI9L/YDJ AblgchZnu6x0TI2St7sIoqwtxH6jWDa+9aHnHWzHabnfK84kUurS6QekKqvkSTEaa5b/ rfYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XkUqnVE+e8JnchkHV5MBfgoc14AXpDqeCvw9QbCzaI0=; b=o4NE8vcfU4ZPrry04qfhsgWIHyMj5N9zwWAJ1MS0m4bENn4jE9RDWPDpzOPIuiC7DB va2aeb0ql6JgIjpd2+tGAvbQsLh0Ug9oz7u7o2paIwfzhcgmRmEmlcIQrWQZgkX4VVAN QYlqOmxU6DyuNYZm194AqSTKQjDg7a0syLSGozJOdSrWpXyLO4VY8HXZCXoirvSpmKtJ yY0wrLVzl1Zzd1u8oU9K5fHqoJaWbQb2WhptlO/ssJpx3+iXQux2dPCepSPCUJqriTfR Y/BROjSSgL8fV4RU8AhwYfIrugpAJh2tMt4HNpHH1OeSpHjpPy1JHB248xHDYpJ7KDxf bBCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W913JJ4q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si4790937ejn.410.2020.08.30.20.23.25; Sun, 30 Aug 2020 20:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W913JJ4q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727961AbgHaDWX (ORCPT + 99 others); Sun, 30 Aug 2020 23:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726687AbgHaDWT (ORCPT ); Sun, 30 Aug 2020 23:22:19 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A99D1C061573; Sun, 30 Aug 2020 20:22:18 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id ds1so2402361pjb.1; Sun, 30 Aug 2020 20:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XkUqnVE+e8JnchkHV5MBfgoc14AXpDqeCvw9QbCzaI0=; b=W913JJ4qq+CnOcpTfmM8zRq8sEvuI59CRr6UQ6kmOaHbbJ3LcPvD2sdepDu2NtceEg PKJi3Tzy0YZKMyun2DJJrk4BKAlpiXbqs/4Cwd7YAOduE5staL3oDQj0drZzZ8dINt30 Mn4riTalMG9sLN5xgKeXy9gf5ZmvMbzUf2KsZAeSVOb++E/xOeki868ZHvNU9+Qu9LDO 54/1b0lNhtirRArEgyClJ6n8qmz2mopf1TxF28Dg5cUHnbVgbmchVABazFaUdRe5CN6/ tUBB+pW+kkwtgk3vmBh+squKhBXdYQBkD7QawEmXyl/gN0Xwkto0hIVLYirKd/bZd7JN RMsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XkUqnVE+e8JnchkHV5MBfgoc14AXpDqeCvw9QbCzaI0=; b=mLygJkahjrjnJYtToX8R4Xpflul8x8ko0OI7WX0iXcfSf3l34THcrNz0z/+k8p8819 VJ6UHy4uVY6MnrvnB+5MxhrtRVNri7rbsc34CRZtCyeETHxqi8ZpK+c6JIqTBWuXfkF0 L9L+nefVUBbbCuSHULkITsW4oc/YP1c6u9zRKasK896G+a0i5kDAYK3QfHceJIUhxoxG KPhAH3DFOxOkD88Ezzwgh2BUBL6aal74ZE5lg6fqgQ6qMezItvAO3TcypuT0JTVImgFq U5wnLUIDmDN71ciMb8tcoKBh+UTngTXzYtTFK1wXrlZmaJXrnDtXWK2z5bh3ketYtiOQ t1mg== X-Gm-Message-State: AOAM533bzkoKkR2RudvBVFHwDHQ6F58UX3o5Cbm2V8KusBPFdlPvf+Gd GF6efYE5IaGVuFYAM/bTclynD0GSNDQ= X-Received: by 2002:a17:90a:2e0f:: with SMTP id q15mr8997397pjd.49.1598844137917; Sun, 30 Aug 2020 20:22:17 -0700 (PDT) Received: from sol.lan (106-69-184-100.dyn.iinet.net.au. [106.69.184.100]) by smtp.gmail.com with ESMTPSA id z17sm6095733pfq.38.2020.08.30.20.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Aug 2020 20:22:17 -0700 (PDT) From: Kent Gibson To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, bgolaszewski@baylibre.com, linus.walleij@linaro.org Cc: Kent Gibson Subject: [PATCH v6 06/20] gpiolib: add build option for CDEV v1 ABI Date: Mon, 31 Aug 2020 11:19:52 +0800 Message-Id: <20200831032006.1019978-7-warthog618@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200831032006.1019978-1-warthog618@gmail.com> References: <20200831032006.1019978-1-warthog618@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a build option to allow the removal of the CDEV v1 ABI. Suggested-by: Bartosz Golaszewski Signed-off-by: Kent Gibson --- This patch is before the v2 implementation, and is non-functional until that patch, as some parts of that patch would be written slightly differently if removing v1 was not considered. Adding this patch after that would necessitate revisiting the v2 changes, so this ordering results in two simpler patches. drivers/gpio/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index e4debd66d71f..ff9ca836026b 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -82,6 +82,18 @@ config GPIO_CDEV If unsure, say Y. +config GPIO_CDEV_V1 + bool "Support GPIO ABI Version 1" + default y + depends on GPIO_CDEV + help + Say Y here to support version 1 of the GPIO CDEV ABI. + + This ABI version is deprecated and will be removed in the future. + Please use the latest ABI for new developments. + + If unsure, say Y. + config GPIO_GENERIC depends on HAS_IOMEM # Only for IOMEM drivers tristate -- 2.28.0