From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH v2 1/2] gpio: Add definition for GPIO direction Date: Thu, 7 Nov 2019 09:20:15 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Matti Vaittinen Cc: Kuppuswamy Sathyanarayanan , linux-aspeed , David Daney , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Peter Tyser , Thierry Reding , Alexandre Torgue , Jonathan Hunter , Fabio Estevam , linux-stm32@st-md-mailman.stormreply.com, Marek Vasut , Florian Fainelli , Kevin Hilman , Michal Simek , Marek Behun , Bartosz Golaszewski , Ludovic Desroches , bcm-kernel-feedback-list , Joel Stanley List-Id: linux-tegra@vger.kernel.org On Wed, Nov 6, 2019 at 9:51 AM Matti Vaittinen wrote: > At least for me it is difficult to remember the meaning of GPIO > direction values. Define GPIO_LINE_DIRECTION_IN and > GPIO_LINE_DIRECTION_OUT so that occasional GPIO contributors would > not need to always check the meaning of hard coded values 1 and 0. > > Signed-off-by: Matti Vaittinen Patch applied. Yours, Linus Walleij From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55825C5DF60 for ; Thu, 7 Nov 2019 11:26:58 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC657218AE for ; Thu, 7 Nov 2019 11:26:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="pIB9+D5w"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aR0m+nKj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC657218AE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0A3D51695; Thu, 7 Nov 2019 12:26:06 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0A3D51695 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1573126016; bh=OP5zt1f9sgUC4mJOL3Zx/qsKCZeYiUGZSIs89eBK3+c=; h=References:In-Reply-To:From:Date:To:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=pIB9+D5w3/P672UJGPAAyBZNtG99iz3iqc9cbtvYG6gMoqWUIhbK8YEoYqECOahvw j9aYWSxe4C0nqRqsYDrJithaI6Yjy7iwjH61BiKzn33IFXrTFpt9VcfgTfWXA+jgWc QSFKzm7H3eu5Kv38V29wdG4lRPo7NaZfy65+aVYE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 937DFF805FF; Thu, 7 Nov 2019 12:24:26 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5E8C2F8049B; Thu, 7 Nov 2019 09:20:30 +0100 (CET) Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id CEBC0F800F3 for ; Thu, 7 Nov 2019 09:20:27 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CEBC0F800F3 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aR0m+nKj" Received: by mail-lj1-x241.google.com with SMTP id k15so1232499lja.3 for ; Thu, 07 Nov 2019 00:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DlF4imC2yuisAQo2SgUCy1P9SylqUN75hyqh76y3GuU=; b=aR0m+nKjgA8feFlTBlwL84cE9daL5eeq25n5+TiO9llQb9TsmGAwBzMrydUeOVpqcd G/NOnRqUmqV9FDnFABUvFStxGmc4lYiT1CO71XxvWX8QHiG+QuYeULshpCobKFsWAsYm tdhQ8t6991g/IUrvBhXPOW8BhPBS86zZJGQOc82tWlYl1GOQvr9MTGWvpPLFiIeR9lEr foMt76rS4g+F3J5BvZ1hmIknazOLP6jdC15sbiF4dtMlHzvLlDlwdEVWxYVkVYDLBy/H 2YD/40djhB6z1791duVFLnjNJBICD/pXuSn9Wyozo1Bsi0Bqg8js/iowtRmXORd7WJzi n1iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DlF4imC2yuisAQo2SgUCy1P9SylqUN75hyqh76y3GuU=; b=q/ZLOrDzWN5eZkI/329ZHFB1BkAUg7OBTlY0vlwcGH8McZgGwCvvO+7RdNs42I8C67 fH8utaIyCcXScR86QIKgEcC0LGFXZOjql0N4yXcWbx446J4V0dHZ9kWqLiyvxcR5BY6s n0qLyTDk7jUJw8DUbPlrxSTo1/73xF53eHlBMtJFzgybq05bkAywreevq0aKTKuzFPXE oCubrQAt8nbfgx90Y6RciuhL1g0eMZErDoONoWyp+vIrDIgCAloBPHXzT6j+92rANS/D BeL9v2JtAGZugkO4hqiQkiXCPix/hpl2slAe/RKVqL8QojeobB5KdRhrEXd1P9KXFY7K d0tA== X-Gm-Message-State: APjAAAUdXfDQZ2rOsSHpy+iz95AVeIE5A35nJkQFMZ50SOXyDhxO+iEI ydWTI6U7ren7XRyMQHw/rcQfb4fEKCxRdPMIYsDFhQ== X-Google-Smtp-Source: APXvYqxJbhcWq+G1f8Jk5lv3i720/gVAo6L3L+y4Wi2RhTUP1I1SjMgB/XswEKoQSm7d2gl5jZMd4ClfaG2HxTvfJoQ= X-Received: by 2002:a05:651c:1202:: with SMTP id i2mr1417186lja.218.1573114826673; Thu, 07 Nov 2019 00:20:26 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Walleij Date: Thu, 7 Nov 2019 09:20:15 +0100 Message-ID: To: Matti Vaittinen X-Mailman-Approved-At: Thu, 07 Nov 2019 12:24:22 +0100 Cc: Kuppuswamy Sathyanarayanan , linux-aspeed , David Daney , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Peter Tyser , Thierry Reding , Alexandre Torgue , Jonathan Hunter , Fabio Estevam , linux-stm32@st-md-mailman.stormreply.com, Marek Vasut , Florian Fainelli , Kevin Hilman , Michal Simek , Marek Behun , Bartosz Golaszewski , Ludovic Desroches , bcm-kernel-feedback-list , Joel Stanley , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Bamvor Jian Zhang , NXP Linux Team , linux-pwm@vger.kernel.org, Grygorii Strashko , Charles Keepax , Maxime Coquelin , Linux-OMAP , Matti Vaittinen , Ray Jui , Sascha Hauer , William Breathitt Gray , "open list:GPIO SUBSYSTEM" , Richard Fitzgerald , Santosh Shilimkar , linux-tegra@vger.kernel.org, Andy Shevchenko , Linux ARM , Scott Branden , Masahiro Yamada , Andrew Jeffery , "Enrico Weigelt, metux IT consult" , "linux-kernel@vger.kernel.org" , Linux-Renesas , Thorsten Scherer , Pengutronix Kernel Team , patches@opensource.cirrus.com, Shawn Guo Subject: Re: [alsa-devel] [PATCH v2 1/2] gpio: Add definition for GPIO direction X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Wed, Nov 6, 2019 at 9:51 AM Matti Vaittinen wrote: > At least for me it is difficult to remember the meaning of GPIO > direction values. Define GPIO_LINE_DIRECTION_IN and > GPIO_LINE_DIRECTION_OUT so that occasional GPIO contributors would > not need to always check the meaning of hard coded values 1 and 0. > > Signed-off-by: Matti Vaittinen Patch applied. Yours, Linus Walleij _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECC35C5DF60 for ; Thu, 7 Nov 2019 08:20:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD98821882 for ; Thu, 7 Nov 2019 08:20:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="j+yeOtqi"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aR0m+nKj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD98821882 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=K58gu4oFxDWEkwdOTTDeEDZu09wyy9VHUmnmhD1eBQM=; b=j+yeOtqi+ldQ97 Efqq2KC0/UlgOVD8CXPeeOT56Ljo3Y5G2JeHCTZXTkj6y1lK7IM5hXrPuxYCwH/glr6XGKAnisq2R l0pWcEkPpiGe7W+VmqgeGMVQajHY1yuul4tyb6wGr8HZzXlBTN+fXMSP/3rRuwOhZ7tDQltl7dxy2 utvOrjqKFQCc6KnPBnZhdiK59X+LtJkhsiTO43bjz8NzGonret+N3OgGjzOVWpr8Q9V4UPzT8BUQP vvw2Dtz3iuGwLxlqerM2X5ydvgLcBsa9itlzWzWWZpxChbRZcrpsqF2J/SjCl0brrVdWxvpTn/GlJ eyNwbJ+8sAljm8Pj3mMQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSd1s-0007Zq-4J; Thu, 07 Nov 2019 08:20:32 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSd1o-0007ZP-NA for linux-arm-kernel@lists.infradead.org; Thu, 07 Nov 2019 08:20:30 +0000 Received: by mail-lj1-x242.google.com with SMTP id q2so1211940ljg.7 for ; Thu, 07 Nov 2019 00:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DlF4imC2yuisAQo2SgUCy1P9SylqUN75hyqh76y3GuU=; b=aR0m+nKjgA8feFlTBlwL84cE9daL5eeq25n5+TiO9llQb9TsmGAwBzMrydUeOVpqcd G/NOnRqUmqV9FDnFABUvFStxGmc4lYiT1CO71XxvWX8QHiG+QuYeULshpCobKFsWAsYm tdhQ8t6991g/IUrvBhXPOW8BhPBS86zZJGQOc82tWlYl1GOQvr9MTGWvpPLFiIeR9lEr foMt76rS4g+F3J5BvZ1hmIknazOLP6jdC15sbiF4dtMlHzvLlDlwdEVWxYVkVYDLBy/H 2YD/40djhB6z1791duVFLnjNJBICD/pXuSn9Wyozo1Bsi0Bqg8js/iowtRmXORd7WJzi n1iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DlF4imC2yuisAQo2SgUCy1P9SylqUN75hyqh76y3GuU=; b=YLpbLL+CFLyQuwo73tTADTRkgxFmbciNvfGci0luNS8Z3ESejeWZ+ggiUYiaQ3lUk6 0IjoMn8k27lDUTY4mAIAK2rg6POcdk5pp3wdFjnpWqmK39qfqaKAbkfngdjLBGY6MHYf yIG4fqF0Vub4foJIkfodFBUUmhoBmTv9ka3Rw4YVDmsrAeGWloFz4rDnP9BLzsUzXMq0 qdmhpe1jjWiZYxVCabyAySIk1H/QnrNz4adObmfh1xtL/6JxuUpWqPwB3GX2G/TAvInQ 8J9gZwz/ZDrTlJ+m5SGLgyCRvL3m5S1ktjSmNt4ATtrcnjZoLu0ZcPelQFh5WlLUXxy0 MmNg== X-Gm-Message-State: APjAAAXt+shNEd40YnPMvzgreAl8OAU4+2+MSOPaSR0wR9fNOh/4H1sf SSyRSRK8t8yUmgAENfjF/R2jSVcDFBJQDs9JUErLkA== X-Google-Smtp-Source: APXvYqxJbhcWq+G1f8Jk5lv3i720/gVAo6L3L+y4Wi2RhTUP1I1SjMgB/XswEKoQSm7d2gl5jZMd4ClfaG2HxTvfJoQ= X-Received: by 2002:a05:651c:1202:: with SMTP id i2mr1417186lja.218.1573114826673; Thu, 07 Nov 2019 00:20:26 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Walleij Date: Thu, 7 Nov 2019 09:20:15 +0100 Message-ID: Subject: Re: [PATCH v2 1/2] gpio: Add definition for GPIO direction To: Matti Vaittinen X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191107_002028_893881_85A7E7BB X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kuppuswamy Sathyanarayanan , linux-aspeed , David Daney , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Peter Tyser , Thierry Reding , Alexandre Torgue , Jonathan Hunter , Fabio Estevam , linux-stm32@st-md-mailman.stormreply.com, Marek Vasut , Florian Fainelli , Kevin Hilman , Michal Simek , Marek Behun , Bartosz Golaszewski , Ludovic Desroches , bcm-kernel-feedback-list , Joel Stanley , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Bamvor Jian Zhang , NXP Linux Team , linux-pwm@vger.kernel.org, Grygorii Strashko , Charles Keepax , Maxime Coquelin , Linux-OMAP , Matti Vaittinen , Ray Jui , Sascha Hauer , William Breathitt Gray , "open list:GPIO SUBSYSTEM" , Richard Fitzgerald , Santosh Shilimkar , linux-tegra@vger.kernel.org, Andy Shevchenko , Linux ARM , Scott Branden , Masahiro Yamada , Andrew Jeffery , "Enrico Weigelt, metux IT consult" , "linux-kernel@vger.kernel.org" , Linux-Renesas , Thorsten Scherer , Pengutronix Kernel Team , patches@opensource.cirrus.com, Shawn Guo Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Nov 6, 2019 at 9:51 AM Matti Vaittinen wrote: > At least for me it is difficult to remember the meaning of GPIO > direction values. Define GPIO_LINE_DIRECTION_IN and > GPIO_LINE_DIRECTION_OUT so that occasional GPIO contributors would > not need to always check the meaning of hard coded values 1 and 0. > > Signed-off-by: Matti Vaittinen Patch applied. Yours, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel