Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp74205pxa; Thu, 13 Aug 2020 20:05:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznqQ8OjAQbNbx42b5HOqCayUFseaBoePh5B3gHJ70ehNgo4Rm++fGMRl31nlmrQ4vc1dqH X-Received: by 2002:a17:906:1c56:: with SMTP id l22mr507367ejg.84.1597374349768; Thu, 13 Aug 2020 20:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597374349; cv=none; d=google.com; s=arc-20160816; b=SMnjg8P326A1jnKsQ7/21biBgLjZaSLYqKyZxpEulqXxKzRRbxdCCdaAlOvX1dPVum KKfK+0X0+on+HbrRMOm9Bca+PMMtc3Q3i+t8K46r8a9mSFRby5F9MzYmR8buSK6/riYL k/xQhc3y4VzB/whCH69r77fX7yCjidZJbP4HWrMLybnl3frqWWC7CHKHIy9t37ejvBCj qtrSB+QugRhRecFMLyd13ruRzdOkiCVc3kMmEXfKmrTmW1BivbVKRcMO8qOXy3ZNXNn8 O5jYCKWtnFIg3bGaDHmtkGJL4dyeBXiiV3aWXK2SEL1kTBfyCREcfTvP7ly8FVPVMW8q 3F8Q== 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=c9CN4erUVp2R4E8zlMNyaMxMfpcnKWHV8MX5e2YwYayjH7Uc6EyT6Co0i8zZm5dL18 ls9sdKs0WqiVg63iTB0a9zdTfgAuxYxPo1G6Zd7svs5b99KnxhAdgAJoj2fO+xEC76iw 9wMJ3cWCrk+aThjkmokKrmJW2vWKG+PdadFDtj5gbPOpidl8KHb15eJBjMNI3PZbw2hH h6YMDcXWB4pxPAauYPSiN5NVpR4wpP0g27aSjMuoQbJu6lv9iYIMhwLrJV+obYMFLELD Y3o9YNceDRyJxqiUU8d/Vsg4cOAJ/Cu0SvjpbnHtDDBG1z/SHVsRuVdxsR2EFWvf9PI0 garw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pe1CcitE; 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 qt15si4438268ejb.319.2020.08.13.20.05.26; Thu, 13 Aug 2020 20:05:49 -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=pe1CcitE; 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 S1726798AbgHNDEH (ORCPT + 99 others); Thu, 13 Aug 2020 23:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbgHNDEH (ORCPT ); Thu, 13 Aug 2020 23:04:07 -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 038ABC061757; Thu, 13 Aug 2020 20:04:07 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id g7so2410402plq.1; Thu, 13 Aug 2020 20:04:06 -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=pe1CcitEeOWOhGNcoplHa3LSDUbCGNHTQ8PCZmSoQHagv247AvvUyhYa9EuoERZzIa 7XbeJjZE8a/K1vyWyJLweEWa7m1T6kjzV9LFtWji9afePiO9bppOuTtK+tM13G0/Cf3C QXn/wCaJPaNkkLRvn5wNkXpZgcfxmV9KfSDAtDyu91bJapjjG6hmP585GorLJwadXaIO 4DP2jGTCMfYUogQIXyEqZjgDfSKiIqIsGcK8XgGBvtISO+ZEb2IZEyIr06jrSMQvQvw+ 5ri09b4u6dMAEJj2a5576UoC9C9c/AihlwxaEHAEdIAfCVdQkiIZ2tH4GgP63Ct2Odbg 0BZw== 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=sjN8aciltI+/JeoYRE6KjIC0XAUz2AsKSldbEdZgH6dkjf5sOq3Ox/YQxABYwuV138 jtdb6HgAbL9reyiNLiAJsNfyrHvwYje6+0V2580VOkmIKQDpCNg6OrLpkNfBSpiAxyy3 5liZx/K3KQKMykeQ5ogIfi5uQi4kg3TKWNjo+88kgic5bGbzss17gGAzi2/C13X3+MaC Xb0xy3Ok+kbuuQUGJIZIYLZzjN2deIo2LCI/kY91mXsGh/vMG82eBRYYlY0cCoHSHDeY syfEcQtANSpFNKico1pXiw788I54SNFEQv68H8oAWOpyyW9NnJbPh0Jd4LrVZaAq0qiZ 2xBA== X-Gm-Message-State: AOAM530nJUiNiwGs53l3+zenWP8c6McnXdvyVmu4r8FoEuJp9A/xpU9V OedYJ+Wlm6qG7BgGXnXh03mb6QKr X-Received: by 2002:a17:90a:740e:: with SMTP id a14mr549437pjg.165.1597374246161; Thu, 13 Aug 2020 20:04:06 -0700 (PDT) Received: from sol.lan (106-69-161-64.dyn.iinet.net.au. [106.69.161.64]) by smtp.gmail.com with ESMTPSA id z3sm6522231pgk.49.2020.08.13.20.04.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2020 20:04:05 -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 v4 06/20] gpiolib: add build option for CDEV v1 ABI Date: Fri, 14 Aug 2020 11:02:43 +0800 Message-Id: <20200814030257.135463-7-warthog618@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200814030257.135463-1-warthog618@gmail.com> References: <20200814030257.135463-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