From patchwork Wed Apr 22 16:39:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 463708 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 470CA14010F for ; Thu, 23 Apr 2015 02:40:03 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=GXSUkdx2; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965499AbbDVQkA (ORCPT ); Wed, 22 Apr 2015 12:40:00 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:36694 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966340AbbDVQjw (ORCPT ); Wed, 22 Apr 2015 12:39:52 -0400 Received: by wizk4 with SMTP id k4so185166883wiz.1 for ; Wed, 22 Apr 2015 09:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=C6819wrqRqQlIkkwqHmYxaQqNdbQ9kkzKA/8MjSBJ0I=; b=GXSUkdx2EzlcrUE72wko7oRmWtdmKKg+Kz9oz+rCcDBCJYwPocF5D9rBtA7xoC8esH jJUyANykeuK0HhkAus3V899HD34eCOieLEqg0WXycjcEkHHAO2jlFr+2Tfy0y41SjgRX kG9e2nVYyDzvMhzfryTzlB+gY2PF2hx8/8Tjc7S5xx28UpDP789a3YStPUiPNjDpMnv8 T6wHaqbTCX0ykbmmVzWYV7kjksUeh9ixLXPbR8wZtfkCE/ry1I8nJhgMtN8WALBDwGvK QD5CytZ0oSPld+25ugwdHmvVNoL7cCgQW37RODzzlQ/wj0doY7X5ErQlkiXJ3c4t62lD zO5A== X-Received: by 10.194.238.161 with SMTP id vl1mr39060925wjc.144.1429720791482; Wed, 22 Apr 2015 09:39:51 -0700 (PDT) Received: from localhost.localdomain (p4FEE1FAE.dip0.t-ipconnect.de. [79.238.31.174]) by mx.google.com with ESMTPSA id u9sm1675309wjx.15.2015.04.22.09.39.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Apr 2015 09:39:50 -0700 (PDT) From: Dirk Behme To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Alexandre Courbot , Dirk Behme Subject: [PATCH] Documentation: gpiolib: sysfs: high can be any nonzero value Date: Wed, 22 Apr 2015 18:39:46 +0200 Message-Id: <1429720786-6277-1-git-send-email-dirk.behme@gmail.com> X-Mailer: git-send-email 2.3.6 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org With the commit 79a9becda8940d ("gpiolib: export descriptor-based GPIO interface") the gpiolib can return any nonzero value for high. Not only 1. Correct this in the documentation. Signed-off-by: Dirk Behme --- Note: Commit 79a9becda8940d has been merged in v3.13. If this patch is considered to be fine, please think about applying it to -stable >= v3.14, too. Documentation/gpio/sysfs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/gpio/sysfs.txt b/Documentation/gpio/sysfs.txt index c2c3a97..bc7f31d 100644 --- a/Documentation/gpio/sysfs.txt +++ b/Documentation/gpio/sysfs.txt @@ -69,7 +69,7 @@ and have the following read/write attributes: it was exported by kernel code that didn't explicitly allow userspace to reconfigure this GPIO's direction. - "value" ... reads as either 0 (low) or 1 (high). If the GPIO + "value" ... reads as either 0 (low) or nonzero (high). If the GPIO is configured as an output, this value may be written; any nonzero value is treated as high.