Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2685786ybh; Fri, 24 Jul 2020 21:22:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2YNzzWLWMqDrDfpsxPmLGr+RlBAC+DVDQTtlOWt3CZu6R2DdwH1DnDrHr4SqkX3oS4HoL X-Received: by 2002:aa7:d90f:: with SMTP id a15mr11464188edr.86.1595650938732; Fri, 24 Jul 2020 21:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595650938; cv=none; d=google.com; s=arc-20160816; b=T5zIDxFB4TNgzG/RLLknu3jMIVAf+zewskeoRoBLNRpqRGwpnlCJ55WtHw8aqJByVc phqAoYRo4fLeclkRSzKQylHZFRx8Od6OZBU94aZpKVQUidfv19cUNZOuJ+w0eKbLvTaU hM5EbF0INWPz+foQ72BsyjYxYmQJbP3V4GdHfH60YoLFHkxqT3hD6Imq2EDvHGcfF7+t W7b2krBf24FSm1c9iRKNbmKlaaZaKi27vVw0LC3D857mebAhTPWbW2GOH++bPhI0P8NW EaOpb9cz5hTR030ZS6I7LVJUCpmNKwiEY3X/K8WZ9sfiHlGrlUHTkHtAvuLu2E26uS+i as9g== 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=LIS2X0aqIeHGnO0KXFcWLzbNNrnM6gwk3bHnxhAqVGI=; b=SxZ8hGbMjl+J+8wkXXAHJ4CKxUiOC2Zb6h0PcZbrMl/PrjqX+1KNyXTp0ZkY819wWV Ge6mJ6KJeT1dsacOgbyxFR+xkFTUgppsHRy9R8paWFNKBJ5xOiGFtTIA2h/gNuCIIrdp x+UriNIqomsyhowGqRdOsRGoKs5mrjYKqRdQqN09DufnuHyeALPGzgF3cpiyJ55S3Ai3 w/V4b+9HdilNtobOAzUWAu80uqEk8KPryzwDaxJNGO40eSBpDRby49DvcxFd9l7Tg9X/ /u7acNTDjtcQ4J6FavBIb63L36WHiFm4fsmMpsXbOQYz3mu8UjlGvVUjUv1XuBFHMeHn RL+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=scXitFws; 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 cm19si1687427edb.529.2020.07.24.21.21.56; Fri, 24 Jul 2020 21:22:18 -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=scXitFws; 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 S1726835AbgGYEVS (ORCPT + 99 others); Sat, 25 Jul 2020 00:21:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbgGYEVS (ORCPT ); Sat, 25 Jul 2020 00:21:18 -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 4FF78C0619D3; Fri, 24 Jul 2020 21:21:18 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id q17so5593845pls.9; Fri, 24 Jul 2020 21:21: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=LIS2X0aqIeHGnO0KXFcWLzbNNrnM6gwk3bHnxhAqVGI=; b=scXitFws281//g1SZXUXHejG/x2yuYdvnZrjoydlRDitrEElJsEGgE+6ifIGna1ZYJ 48vDGzeDqo8UfQWp4XJPaXcBFAdUNq05I/iqXuoRdklvWaCupElIU+uPGCZlQPdMuNPW 091BG9nPA1e1+dO33cAXV+LwFEAqzK+qTQ6cjyJH/jZFtwcGkvEmEbcS10TKWHdGos6C SCNAcf53jTA1VJdI+Qlog47Iiv0vY10B0I/UZ//H1uETMowuLHcVd9uD9bOpHAqxMPZU DpSXLJ4vVdkTRK1fdfqc5CZFJBha6INNefewRVW5pSTzUIsuDNT4h2lJcB8d7fJ1ruCN 6BFQ== 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=LIS2X0aqIeHGnO0KXFcWLzbNNrnM6gwk3bHnxhAqVGI=; b=VgIxuSMoaZQUrHLx/vN2JQhxnjQxQdmATZjxMwzyzH4EwblkQ8A4Lj7kziJk5Q79QO crCIPUELeGeUCD/Xg4yiGGOZ8+Hh+laVAbTET212Tc+573dOCN/BgJYw8QcS+yPPU65n 8caHiyZQ8jyd66DTMS+bX71bZFVoKWC4graAePkDaJ2yaWLJ2Cosc/IuxQefHpqoedAc uulMOL1bspu0GUyQBMpG/rJSj/1cG/YBwQ6KwvEeetCvpA6fPTRccja8UHpMBkscCps5 iQOT0rV362rYkk76Kh5j0zcCcRUSN2g3XBmdTTsxw5guIWGi+QjYyT5jlEwDWQXS6hGJ B2ZA== X-Gm-Message-State: AOAM530a14W+rwrLrpzThUFz+M4SXOyoHo36aKXkHosrrQBep2KM7jTo hU8COiEJXfJM4oCaaSxJ/KftuAZF X-Received: by 2002:a17:902:b193:: with SMTP id s19mr10736355plr.246.1595650877491; Fri, 24 Jul 2020 21:21:17 -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 p1sm885320pjp.10.2020.07.24.21.21.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 21:21:16 -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 v2 04/18] gpiolib: add build option for CDEV v1 ABI Date: Sat, 25 Jul 2020 12:19:41 +0800 Message-Id: <20200725041955.9985-5-warthog618@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200725041955.9985-1-warthog618@gmail.com> References: <20200725041955.9985-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 b5bb9efc1092..d9775998a997 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -81,6 +81,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.27.0