Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1959460imc; Tue, 12 Mar 2019 04:23:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq+kSBuM45oABg7qy9QaAQ4t3mcbUxRbvA4NzuNuJzxbfXR4+CcuW1hu+QCImqBPXcfEB4 X-Received: by 2002:a63:e641:: with SMTP id p1mr1689012pgj.325.1552389787876; Tue, 12 Mar 2019 04:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552389787; cv=none; d=google.com; s=arc-20160816; b=zbIj1VZpb5c4F9lWYwzllc7T6qK1U3q+PUa2K1zwpvb0M0JvOxfiDEDDOqDfrEDour SykmfBLev4U2/EXz9w9nPHNCaNLf5HbXmrB/VczZdPbItmNQbpV+qPcMkRLNtR8e8qy5 36pYdZkefSYI4xjOseDN/CilliseWjdSDawhihry60AYjr/SG5qR4+SrkMBuDLn6IwuO R1c2d+ep01S2x9rTmzl3MEDNgNMJ3u2XUb0scOs/D8JpZ5QhisBmsxvEaihoeZocCm4n XwNcAB+Yb0oCaCmr5HJ4muXqUvRA7UVnzmR0QeZQQmkVbvePrka+2hQblqoj0aH3Hbuh kH5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=48Ux1j0TGqV7k4ceMsTo3hrQBQvNsM5C5lwrjuhnW6Y=; b=kEXtHSyZQE0utNm6tk8PJ7WoPQg7E9MiYjeAtZsxXShlIa5aloCIjGUthzTMODjtk2 lvqOA63CJrrYZw78H7Px2/cidiezQittuoYNOihYy576ZefjCkHB1rfyJPXrHx+BY7V0 j2109OYJJZGF68TH++CvwjwdQ+iYGIAJXaMLQH6z5ogcnMhzIFpQbv4rmVRyQ8HdzRP5 5ZgNA6Q3IcFJzCOujpa7r9w1O2nSe1fUyhGKk2l2opmxet5AzehC1+Tg+3V/V/1CCxvi 471SXn4iQaHSQPcjsK4Bf5H1e/IUYFwEc6u2IA6Ip2LpUoK/ULaDbY11jtB4MWNPtlrI 10aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qIiuTjAS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14si4092587pgl.479.2019.03.12.04.22.51; Tue, 12 Mar 2019 04:23:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qIiuTjAS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726564AbfCLLVL (ORCPT + 99 others); Tue, 12 Mar 2019 07:21:11 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38648 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbfCLLVK (ORCPT ); Tue, 12 Mar 2019 07:21:10 -0400 Received: by mail-wr1-f65.google.com with SMTP id g12so2254146wrm.5; Tue, 12 Mar 2019 04:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=48Ux1j0TGqV7k4ceMsTo3hrQBQvNsM5C5lwrjuhnW6Y=; b=qIiuTjASVle/ZW2Vnsx62L478XTAzkurVd37q91yzaT7kiHH2BwFBMN6YIbE4CUA42 HLDZM8Z8e/w0tWr4gO5vuEm7ibuO7/3yvUzdN6n+nTCftI3mp/FucCT46tB/fqUrnDnX Nv1g4iOMbMPS00iniA3JKYHw7E/Xdl6ZSZ5Qj5sD+el/9Zucdn2SGk8m5XgBw0sxXVdv UrM78Uv1KvrN0PR0E4RE9P3o6Oz7GnrNrcJP9x3/MsofdYCkUa4F09CJ786TzsH5EvY/ r2VaEnYBR39mhVIrpm1OkGXw1suTr6rxp7pn02S485dzA+yzAdgd2cl2RdPAD8XE1Gcn YDmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=48Ux1j0TGqV7k4ceMsTo3hrQBQvNsM5C5lwrjuhnW6Y=; b=nKWlNT6jFIcc6aeeyipVRlxqvGbpQHhoFTSlXN38zFFit8E7vZZulZsW0LiJJZ8Zjx iZo8oMKGl+wUlXI2RUvEkZc2tg83p+DaQ6NMfraHL1h+C2RRUxYC5sq94Dn3x9TVt7t5 2U7+/ZQl6V/emVpBJ8bDxapoc665x0KeR/GNfgxyLFb+kmaOhQIjsMR4r0LZsfuFOMIz 1rtN4dKy5ydrF3jkwXwIjW2MvktHez3qB+oi03sOupabNbEzxY+cVnWyZOPQLSihGl1t vnN/rFoRf9iOkNdf+y++ubDcURN+CgD1v4jfB5TH5rSNNG3a/B0N5CMLh47qWCUWY6wz SfHw== X-Gm-Message-State: APjAAAWX6sKXTLTNxB2RuXRcY00R+8u3rjMJHQGI0cRkp1dED41z+ub9 mZipLpRKBv+h8fID3XTBP1E= X-Received: by 2002:a5d:690d:: with SMTP id t13mr22854580wru.135.1552389667377; Tue, 12 Mar 2019 04:21:07 -0700 (PDT) Received: from localhost (pD9E51D2D.dip0.t-ipconnect.de. [217.229.29.45]) by smtp.gmail.com with ESMTPSA id z9sm9919170wrv.59.2019.03.12.04.21.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 04:21:06 -0700 (PDT) Date: Tue, 12 Mar 2019 12:21:04 +0100 From: Thierry Reding To: "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andrew@aj.id.au, f.fainelli@gmail.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, hoan@os.amperecomputing.com, orsonzhai@gmail.com, baolin.wang@linaro.org, zhang.lyra@gmail.com, keguang.zhang@gmail.com, vz@mleia.com, matthias.bgg@gmail.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, robert.jarzmik@free.fr, yamada.masahiro@socionext.com, jun.nie@linaro.org, shawnguo@kernel.org, linux-gpio@vger.kernel.org, linux-mips@vger.kernel.org, linux-pwm@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH 03/42] drivers: gpio: amdpt: drop unneeded deref of &pdev->dev Message-ID: <20190312112104.GA31026@ulmo> References: <1552330521-4276-1-git-send-email-info@metux.net> <1552330521-4276-3-git-send-email-info@metux.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <1552330521-4276-3-git-send-email-info@metux.net> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 11, 2019 at 07:54:42PM +0100, Enrico Weigelt, metux IT consult = wrote: > We already have the struct device* pointer in a local variable, > so we can write this a bit shorter. >=20 > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/gpio/gpio-amdpt.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/drivers/gpio/gpio-amdpt.c b/drivers/gpio/gpio-amdpt.c > index 1ffd7c2..3220f3c 100644 > --- a/drivers/gpio/gpio-amdpt.c > +++ b/drivers/gpio/gpio-amdpt.c > @@ -91,7 +91,7 @@ static int pt_gpio_probe(struct platform_device *pdev) > =20 > pt_gpio->reg_base =3D devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(pt_gpio->reg_base)) { > - dev_err(&pdev->dev, "Failed to map MMIO resource for PT GPIO.\n"); > + dev_err(dev, "Failed to map MMIO resource for PT GPIO.\n"); > return PTR_ERR(pt_gpio->reg_base); > } > =20 > @@ -101,7 +101,7 @@ static int pt_gpio_probe(struct platform_device *pdev) > pt_gpio->reg_base + PT_DIRECTION_REG, NULL, > BGPIOF_READ_OUTPUT_REG_SET); > if (ret) { > - dev_err(&pdev->dev, "bgpio_init failed\n"); > + dev_err(dev, "bgpio_init failed\n"); > return ret; > } > =20 > @@ -110,11 +110,11 @@ static int pt_gpio_probe(struct platform_device *pd= ev) > pt_gpio->gc.free =3D pt_gpio_free; > pt_gpio->gc.ngpio =3D PT_TOTAL_GPIO; > #if defined(CONFIG_OF_GPIO) > - pt_gpio->gc.of_node =3D pdev->dev.of_node; > + pt_gpio->gc.of_node =3D dev.of_node; "dev->of_node"? Thierry --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlyHlhwACgkQ3SOs138+ s6GD7g//RLd4WtA1eIT8moMwWLKywkUMl3Nz89m1EIFFGKv2Q76AjTLCMykRiwTR Pu6OtKodY+L2FpLDweXXz/HYtUbtiZn2/44t5vVAFadlJiMAiL0fFO8VYDW4DNE9 cmcWzeTdbJNg/DJXRbUVE932XhvEdUzWXw1ymBlD97FQYpvRy81FjjHgQ7tCYYQn q+7u2dS+Q/9g5pFvz0oiG3TZyX6yWoXwIdSRTrU4O1QTpNgSt70xvKGg/NcCxYfe TByHergN63iBB+0caCXkpbmc7X26QKfvZn1L7OfrCPUQEZg5pOXJ69JGM3ELz6Rx 3xP/C+Lzhe0eS6E7sjbb7FA0XhBs9zlnMBLv8wz6miYJrj9YuEJEUJHoPDjlUTmk gTnbhp79Ic8fbsNAIfnByHnZ6d1g/0Xis/LOyQ6WppARhrNXZxPt2XZZyiHel2t3 ozG03l1U4omMaj+W08euRQ9oX5UJAfR6Knd5ZD/TYcBQFDgyyIMjjsPzwhIC7cVL REYCYrcYLQgOG/O0oUqmEQtJZXsF3OtLXDADYxoCGAD+6ri3O9NOxOlO+rwUDjEj QmLu34BajBjOV6wx/5HSXOTbntd8Ej+stMUp/xVMeV7xRwTb0hKMUFUwNNL8Aw27 /dD0jGMO0vAcc0kUgTGgHkyJy3OetueR5RjzRMzdqegxq/D213M= =6/o3 -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--