From patchwork Wed Nov 18 09:07:07 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: 56920 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2443464lbb; Wed, 18 Nov 2015 01:07:36 -0800 (PST) X-Received: by 10.66.97.8 with SMTP id dw8mr485721pab.113.1447837656741; Wed, 18 Nov 2015 01:07:36 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ui10si3043016pac.7.2015.11.18.01.07.36; Wed, 18 Nov 2015 01:07:36 -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 S1755231AbbKRJHd (ORCPT + 4 others); Wed, 18 Nov 2015 04:07:33 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:34065 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755119AbbKRJHQ (ORCPT ); Wed, 18 Nov 2015 04:07:16 -0500 Received: by padhx2 with SMTP id hx2so38896199pad.1 for ; Wed, 18 Nov 2015 01:07:15 -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=hXvaGDbW3L9LQLUigQX8BlXVtglxaPNAqAcNmPdepXQ=; b=LRE4FAwarDPXof9rCWDBoZ3B9CKQHyCEp3Tm+95LSYTZCA8NzoGeoXlhUNkP6xBwbs 1v4GhRwjKYB8u8/W/gT7QUHQILMWx/+aGgC4IFfN3uUf3fbrcmvHznMjiVB7z0c4nzWi IQFr71lyt2V+pj6PDXIsRLOpnr2YvuaM0egTUkkzLwT0u19TtyqO46CfHNIhC5pzBxbX WJrQUeLiej6/Nv8/LVt1tCm+6cGI5Ml9ygtuI0HABZMeZ0689FuNjJQbA6wBQdY8OE+1 kKe4S9WeFu2QVeSHdohErWzIruZrE9cvL/5+OBgFbuT0tzgMRyR3h7FJEpZ9QrL90QGe EUQA== 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=hXvaGDbW3L9LQLUigQX8BlXVtglxaPNAqAcNmPdepXQ=; b=dqn3FLVyAXGn7YgbJ5n3XEa5RHmRjBAbnpM8XGNpMYn402NwYI/me0+TccumQU1Xj1 3C4PQZd2EnsAAdsbc9+ItQR49ZLMLntgPNd8CH0Uen+pu+2vo5Te+DYzoCOhdGf55lvq jR9MdC/z/hZ5KiBP2i8PXdJP49mgIh4gGK42mlhDzJJ23JNZwJNT7x68jRgKp5eaXSYS pNpra41mX/3bQ3IMyB29MM0rwBR4LZpBdl3gw4wpmYMfXUBqX8MpU/vJYAWeQHXUPoxO 6iJICZtMogDCPk6p/l1dZFxvIxUW2Xy9iRUSBqKHOFn+D4qlHpJDKZZrMTiWgIXoNx9B waKg== X-Gm-Message-State: ALoCoQnAxfY++gya1AaFsJFK8WGyEQPjNq5yiefLy+Lw7D0JxkanBMzX7OKqdMLyN6WO9WkaNOEg X-Received: by 10.68.238.100 with SMTP id vj4mr503957pbc.103.1447837635631; Wed, 18 Nov 2015 01:07:15 -0800 (PST) Received: from linux-j170.site ([116.251.213.227]) by smtp.gmail.com with ESMTPSA id v17sm2686292pbs.69.2015.11.18.01.07.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Nov 2015 01:07:14 -0800 (PST) From: Bamvor Jian Zhang To: linux-gpio@vger.kernel.org Cc: linus.walleij@linaro.org, Bamvor Jian Zhang Subject: [PATCH] gpiolib: make comment consistent with code Date: Wed, 18 Nov 2015 17:07:07 +0800 Message-Id: <1447837627-5462-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 Commit f4d566a8a0e6 ("gpio: change member .dev to .parent") changes member of gpiochip from .dev to .parent. Update the corresponding comment. Signed-off-by: Bamvor Jian Zhang --- drivers/gpio/gpiolib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 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 89e0153..e63bebc 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -306,7 +306,7 @@ static int gpiochip_set_desc_names(struct gpio_chip *gc) * different chip. Otherwise it returns zero as a success code. * * When gpiochip_add() is called very early during boot, so that GPIOs - * can be freely used, the chip->dev device must be registered before + * can be freely used, the chip->parent device must be registered before * the gpio framework's arch_initcall(). Otherwise sysfs initialization * for GPIOs will fail rudely. * @@ -714,7 +714,8 @@ int _gpiochip_irqchip_add(struct gpio_chip *gpiochip, #ifdef CONFIG_OF_GPIO /* * If the gpiochip has an assigned OF node this takes precedence - * FIXME: get rid of this and use gpiochip->dev->of_node everywhere + * FIXME: get rid of this and use gpiochip->parent->of_node + * everywhere */ if (gpiochip->of_node) of_node = gpiochip->of_node;