Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp666438ybz; Fri, 24 Apr 2020 07:17:27 -0700 (PDT) X-Google-Smtp-Source: APiQypIYxLBbdG35x1vrLrcCwXs60DHs5TRcRLTievo33n8BQT7u9hW+A8aCI0aOFPuJsUoXu3PL X-Received: by 2002:a17:907:a89:: with SMTP id by9mr7055589ejc.289.1587737847630; Fri, 24 Apr 2020 07:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587737847; cv=none; d=google.com; s=arc-20160816; b=GZTDOFgoxSe51jtCSeHNLMvJaWyLzYSF/n6HRbMoSYqiPzrIpurfd3inm+6mgrcgJq 2Q00uBPF21T93MFkjT8+fWHM6ZTTL0FUfgJc6GjMp+znyiGOTkL31eA0CR4OrHe+RNjJ 7FTSgPsnZjsN0lYSoS2PrQUKCscl62DpI+2K+zlhO5Co7rQQziCb+kZSBvwW8D+O0lvG Bom1y8D4k7Y7QNzZ8tdOpdlmJLhqhV6xUwu6JFz/NiPq8o6Rme9fZjC3JCGJpYhTOmIK 5+Lj5WCFNGIj99luqGDZABEahJH7fAq26epWCwhQ0YtnBdpQQCX5XnKhWmDVHIFWDaqw DWZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=nxgIT3ns6xpqj33cvo/NlXgMG5Ew9yzt93tAno3rXx8=; b=TbaYLWnpw/+oQPlsAorERQcqSaP3T0htOWwRDRs0uA9x6G3Gg2SKBKAkyA8kD8rCfy 0HbW/4XZ8MPAEGQ8XDj2QHRlhVSrdSCSbmWeinsqj5fiEv3np5/Q2MDG1dOcKt/wGnsV 3C0vdFweoE9ImBVvCA3HtQ298bJNFvMxpr7n59hBRSXLsjBLajRqYuhrwld+dOf+ZyRx 8g02+2gEsjWkHxDhhQ9oqK+1vgN3gyc+rXdsB11VTKT57fEvOdafy1FlOIhLRq91BqUb EKgpH0m5dSmsBv7lyOEVCLnOz11+UDh1sSdNU/ehIO+/DnA8VsHMjmBrJLe91FI2tRJU rzOg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si3317872edp.353.2020.04.24.07.17.00; Fri, 24 Apr 2020 07:17:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727105AbgDXOPU (ORCPT + 99 others); Fri, 24 Apr 2020 10:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727083AbgDXOPU (ORCPT ); Fri, 24 Apr 2020 10:15:20 -0400 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20A52C09B046 for ; Fri, 24 Apr 2020 07:15:19 -0700 (PDT) Received: from ramsan ([IPv6:2a02:1810:ac12:ed60:8134:2f28:3a79:6257]) by laurent.telenet-ops.be with bizsmtp id WeFJ2200D3LKRvX01eFJ3n; Fri, 24 Apr 2020 16:15:18 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1jRz6s-0007cX-Cv; Fri, 24 Apr 2020 16:15:18 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1jRz6s-00031n-Ay; Fri, 24 Apr 2020 16:15:18 +0200 From: Geert Uytterhoeven To: Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] gpiolib: Rename "chip" variables to "gc" in core header file Date: Fri, 24 Apr 2020 16:15:17 +0200 Message-Id: <20200424141517.11582-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Consistently use "gc" for "struct gpio *" variables. This follows the spirit of commit a0b66a73785ccc8f ("gpio: Rename variable in core APIs"). Signed-off-by: Geert Uytterhoeven --- drivers/gpio/gpiolib.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index 853ce681b4a4139d..9ed242316414057d 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -81,8 +81,7 @@ struct gpio_array { unsigned long invert_mask[]; }; -struct gpio_desc *gpiochip_get_desc(struct gpio_chip *chip, - unsigned int hwnum); +struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, unsigned int hwnum); int gpiod_get_array_value_complex(bool raw, bool can_sleep, unsigned int array_size, struct gpio_desc **desc_array, @@ -163,18 +162,18 @@ static inline int gpio_chip_hwgpio(const struct gpio_desc *desc) /* With chip prefix */ -#define chip_emerg(chip, fmt, ...) \ - dev_emerg(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__) -#define chip_crit(chip, fmt, ...) \ - dev_crit(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__) -#define chip_err(chip, fmt, ...) \ - dev_err(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__) -#define chip_warn(chip, fmt, ...) \ - dev_warn(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__) -#define chip_info(chip, fmt, ...) \ - dev_info(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__) -#define chip_dbg(chip, fmt, ...) \ - dev_dbg(&chip->gpiodev->dev, "(%s): " fmt, chip->label, ##__VA_ARGS__) +#define chip_emerg(gc, fmt, ...) \ + dev_emerg(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__) +#define chip_crit(gc, fmt, ...) \ + dev_crit(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__) +#define chip_err(gc, fmt, ...) \ + dev_err(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__) +#define chip_warn(gc, fmt, ...) \ + dev_warn(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__) +#define chip_info(gc, fmt, ...) \ + dev_info(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__) +#define chip_dbg(gc, fmt, ...) \ + dev_dbg(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__) #ifdef CONFIG_GPIO_SYSFS -- 2.17.1