Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3625314pxa; Sun, 9 Aug 2020 06:27:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/G0Pw8F7BtXzKjXkTRMemjyHvqwlPReZ1Sd34VorPhdyTB8nC32Lgp2e16GSN6bRsHj39 X-Received: by 2002:aa7:c251:: with SMTP id y17mr17459400edo.13.1596979666561; Sun, 09 Aug 2020 06:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596979666; cv=none; d=google.com; s=arc-20160816; b=kIl5D9nDST1A+5pNxpg++87+2AMGe6fhGQzg9yv7obTmKDI6YlMdDpbNS5vaAb5qOm ZLbp/Ol+CU0jrqdSCj1/0tVlpKRVxI18dGW0a0vw4B1hyzrA3jkNrK+KeUf8Qad0nP+d emuihtuDw+faWBfX4/SUbqvcEPJJD3V4bbdeiKm0tRIgpjjOWlr3bNHEUSKfGVlwnl9D lUAvLmryaT898s+ubUN1vQTJCBozzfdJ2IC+JSUBKk8V7ytCiAVbHoR/jJUelBNTEkTr 3wAaL24Uky9BJXEx/gzGcAO9V3wm8CCK9wOqMpddlKEdymgQToRmL/iI5API7AaZAYpM QZkw== 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=mL4xScgLpm6GZnT5ws/9FIwwZ74rEqIv1N27JN7upQo=; b=Mbzl7/1rvXLj/jPvuWZ5CCFFuIe81N8fc8dNbgfLOe7Ol2mjnBMr8ODZGVuhLSY4nl QxaWbpCzLjgGeIrgk1RUzI85io5DTCqlFEswiBiY09XVkndH7i9Q2N4iMsO4FPVAR5qE q1ynAEiLSelWUQzAsQnakygySvdhli/Y5Kdks+U2tIJeefxeD0bRRUPCJw7SFzVAUfzj iAXRnm5G59bGowGTRBHYhRSmrNGwWEtk9PKEJ6cS1mwa/et8eWj8bRwnUbHgIYL7eVZk Li3AkhsS4AsvjPnd7vnXQG47apL7ja5VgQcH39GFhiwJi/fA9HVU2lwF78CReEBNycFe m4RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qvy+4vEj; 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 x23si10471303edi.416.2020.08.09.06.27.24; Sun, 09 Aug 2020 06:27:46 -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=Qvy+4vEj; 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 S1726465AbgHIN0X (ORCPT + 99 others); Sun, 9 Aug 2020 09:26:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726323AbgHIN0V (ORCPT ); Sun, 9 Aug 2020 09:26:21 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BF78C061756; Sun, 9 Aug 2020 06:26:21 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id p1so3460824pls.4; Sun, 09 Aug 2020 06:26:21 -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=mL4xScgLpm6GZnT5ws/9FIwwZ74rEqIv1N27JN7upQo=; b=Qvy+4vEjYq9/7duZPVSb/4rxz6vz4RAz4Lbp2mrg5lET4dKfzgO0Ba98BW7oeR2y+M rWFE+JUzn45Ds0kKhd2Rnl1Y7VvU6GYirHBaKw/Fo/E5vRUGOTlZJLjUFOJLDJXeoI7Y NljaXq9kqtlN4QA9GStzVAiaOqJsqutAfH+KqFlXhFvT3L/Znlh444zfaidfqkJRJXZN FyDNsJhtTGifE5nUo6oRJsyCbUXbAZet5i2+yPCOfSJgbV/q5v4OiS5qfSYw+0rSZH8T u2qp+ziBJzJa11K/aZjWQSryfCU5cRP1LgzldB6lJAEVBx2njCEmbVdqhKILfAHy1/IH 5v7A== 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=mL4xScgLpm6GZnT5ws/9FIwwZ74rEqIv1N27JN7upQo=; b=NQQJ1g741tV/OAv5WkSMSkrZ3o8pYFN20V3cQIzD/9On+zgkRGvZADFm7fulVaeBf6 KqLjMtMFNY1q2BP8h/oMw+tpOgh0cxrxhCT6lkYIcuQnr/XDzw3CjWpGed585Q00HAt2 9c8B28USlRJnwRyNaoylGLZ1qA7V1cTR4tuliWwE+staZpr0aM4l1Ac4WMtEYoSptqYR W4PIzQFVa9wteU9awfGw2aOw4pdwSs5+3QDKjZngNADZLAzxdURkzfOzi4GnpvwsvZ7j 4S5jYFBWkN0+nL2qwIYYibiAu/S9CCoEzY4BRVN8+XU/wuGnksD9o5uW/+mUM2OUWWnw oZmg== X-Gm-Message-State: AOAM531isYWC1o3dHruGh8/QaDv6SImYK40Ix+HWSa15+D/DICjb6mNx Qbe1dK8+ikmnhFVVj4UHuPDf/87S X-Received: by 2002:a17:90b:358d:: with SMTP id mm13mr20120371pjb.88.1596979580560; Sun, 09 Aug 2020 06:26:20 -0700 (PDT) Received: from sol.lan (106-69-185-93.dyn.iinet.net.au. [106.69.185.93]) by smtp.gmail.com with ESMTPSA id j10sm9127414pff.171.2020.08.09.06.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Aug 2020 06:26:19 -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 v3 04/18] gpiolib: add build option for CDEV v1 ABI Date: Sun, 9 Aug 2020 21:25:15 +0800 Message-Id: <20200809132529.264312-5-warthog618@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200809132529.264312-1-warthog618@gmail.com> References: <20200809132529.264312-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 8e409b9c33dc..0c62e35cf3a6 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