From patchwork Sat Nov 14 08:43:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bamvor Zhang Jian X-Patchwork-Id: 56559 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp243493lbb; Sat, 14 Nov 2015 00:43:33 -0800 (PST) X-Received: by 10.68.65.74 with SMTP id v10mr38075408pbs.67.1447490613226; Sat, 14 Nov 2015 00:43:33 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kq5si33618198pbc.41.2015.11.14.00.43.32; Sat, 14 Nov 2015 00:43:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750974AbbKNInc (ORCPT + 4 others); Sat, 14 Nov 2015 03:43:32 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:35139 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbbKNInb (ORCPT ); Sat, 14 Nov 2015 03:43:31 -0500 Received: by pacej9 with SMTP id ej9so16769439pac.2 for ; Sat, 14 Nov 2015 00:43:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=3IIY15kM7P8Fpgc/Ys580umcCjQvRN2l8KVZ6qc9iOY=; b=2TPccKiw8g6CNA+ytW3HLytmOORef/zJFuSQ6vA7PjUdFo08FvYH87fPZPgWAgNPh1 SvVunaSTtPRl9GxhcuDB29B0DJ8mhkIUZkO3qIq5SNWPbMKs0VYejclvUFE7D0apnFbP vDbuys2soWvKcpFqeiyip6TxnniQnQdHnBCXNipRgzYtkQceJ1brEP6AQlEqcAnG1WCh rCaMYA7h8VbFOdjBNKqU6nDNPRcOSTFJEC/Oewm2/zcxyPBHt8MacxVripLBpHMQpPRi 6GiWUoIVhOYhe8Mpc+dLbsnOWSz7rPLLnpAvg+Gi5VLu/EMyW1LnGkTvbIJUAB9p0gEt 1DDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3IIY15kM7P8Fpgc/Ys580umcCjQvRN2l8KVZ6qc9iOY=; b=LByRNJVtr1Dj5hF+FyxsAXtJVc3mPFp4hKgVhjTYyAcyE5eOgJq3ttAYlz/5Y2RmBF zmgnB8S6pIEOX6ytr24N6xcIpjCW8BowJ/pILOus6+t3qIRrp/23tIXgvKdO8irgRaK0 c1533V0B94vxr59zXhiQ92CeCH1ZTgOLvPi6jiY/v4CkBPrbUFThxi0ANFG5iAEYypO2 wsylrPzX6odC00wbSkyhaYmGNSOxeD4rDFXXInXM3FRKnmQtW9HzSxmBMDitr0i8Ftx7 fnlPQ7RPoW3TTxdZ7YrfVoIcsA6k9f/IpfPnUjUNtAHlIO/Jsnxd8dloJDItByIKrReV OjEg== X-Gm-Message-State: ALoCoQmmtbY1luGEwCVuHmx2j07gUtLzIkXIXskOFnjxrnHg9fu+Xy+oVz0SYOS15C9cNr0WCbrZ X-Received: by 10.66.161.35 with SMTP id xp3mr38655242pab.13.1447490611210; Sat, 14 Nov 2015 00:43:31 -0800 (PST) Received: from linux-j170.site ([116.251.213.227]) by smtp.gmail.com with ESMTPSA id d7sm24676684pas.31.2015.11.14.00.43.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Nov 2015 00:43:30 -0800 (PST) From: Bamvor Jian Zhang To: linux-gpio@vger.kernel.org Cc: linus.walleij@linaro.org, broonie@kernel.org, Bamvor Jian Zhang Subject: [PATCH] gpiolib: keep comment consistent with code Date: Sat, 14 Nov 2015 16:43:20 +0800 Message-Id: <1447490600-12449-1-git-send-email-bamvor.zhangjian@linaro.org> X-Mailer: git-send-email 2.1.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The commit f881bab038c9 ("gpio: keep the GPIO line names internal") change the error to warning in gpiochip_set_desc_names. Update the comment accordingly. Signed-off-by: Bamvor Jian Zhang --- drivers/gpio/gpiolib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 868ff15..d233d0f 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -271,7 +271,7 @@ static struct gpio_desc *gpio_name_to_desc(const char * const name) * Takes the names from gc->names and checks if they are all unique. If they * are, they are assigned to their gpio descriptors. * - * Returns -EEXIST if one of the names is already used for a different GPIO. + * Warning if one of the names is already used for a different GPIO. */ static int gpiochip_set_desc_names(struct gpio_chip *gc) {