Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1359510imc; Mon, 11 Mar 2019 11:58:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUYacvx3z9QjNO7Y4oCh0VF4dX4K2d3dGJiGs3CttnaQMWKi5xXpQBsDZYvbeJ9VAQ+3lN X-Received: by 2002:a62:4815:: with SMTP id v21mr33836715pfa.167.1552330688987; Mon, 11 Mar 2019 11:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330688; cv=none; d=google.com; s=arc-20160816; b=BgG18RCKlFBh3jgVdFRp8uFXz5I4kzGA3eH2J1AMVO9+Li0E1LAT0KQ9atKwVYGvk4 AYsiJCoTT3GcmdtT1k4ZyORkAURvPF1ayTa19nub/A7XocnSBYmvsjt7UUsfdI+dtoJL PV3syUS7lLObUTAr8b8l5Uf0hTKPj4KOsxdbBigjTgwRzq6l3Yu9qi394f42EHObQn4g Gl8pxtMZBcIrJoPi3DankRt9/+uVp3tPrd/DwAMS5EIzS9CRFyD9NwcvoYfhXvvWLi1q oHBJJ+YvKsc7HzJN8Aq0Dq/XBccB52H4Fd9YTGa1j1l2P5wLRN7c2B57SBSmsF5HKApp q2hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=8FF2lWm8HJ8X+xMleeCZV3GJP8lsev2Z22uKXyOvJi8=; b=hV622raBapTFa4fh0EhZ2V1uGyWiBlqpptb1CXQRMHSwtk0Tu/eIw1WBz9GAaiWfGz LRCQ/DgsNj5L8t+yOZJAvl6EY3zcwBH39mvTacmcSjhFHXYMAsVoW+FQtr3apisaIdVA 0Sb7k4kC/LpSRzM7mlTw4Ysa80Nkvc7SsheSfrsHlVwrZHrQs0uiyqlqpqYBIwhRw4CS rmDJuUXuYMEBxTy2PrQw4aLHBOfzz4BIDsjTHxdTl1irUvkcPsGGaUS9iefH112ds5CF 8XagPwrXjInNuD6SfXcrMRUWm03cGuq4IMNALZbczNiNmNXzBLJqnpuwX7M+g+a4wC/t 0O3g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r39si6267598pld.70.2019.03.11.11.57.53; Mon, 11 Mar 2019 11:58:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728429AbfCKS4J (ORCPT + 99 others); Mon, 11 Mar 2019 14:56:09 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:57635 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728281AbfCKSzy (ORCPT ); Mon, 11 Mar 2019 14:55:54 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MgNtR-1gZJKg2Swp-00hwpN; Mon, 11 Mar 2019 19:55:37 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: 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, thierry.reding@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: [PATCH 16/42] drivers: gpio: janz-ttl: drop unneccessary temp variable dev Date: Mon, 11 Mar 2019 19:54:55 +0100 Message-Id: <1552330521-4276-16-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1552330521-4276-1-git-send-email-info@metux.net> References: <1552330521-4276-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:xPkcHUo6RopzkqV+mh4vpPChYf4VH0lnv4qK/tFVXd518EX7goP fE+h/waGMIQcBXFyHl2mq0TNuKHgHulmHoMLbXWNaKlaC4lw9WQVO9LBFie7iE32I45XUI1 KyMHsAW1M6/GmZKIMWnBmE8cCGG/5qnzhk9RUwoNViVB860YxZI+TDscphdHRZ+B2gdThZ3 0FHTmo3xgE+FUIbLN8vEw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:8QpcY987fuE=:/gKt4XdUX6RqHGucbXMHoW xCMoIPSMVtUg33YrA3fgelxDXwIeXZhifNd/U2cJMB7pOqFNdknmnwiNxmMxTcM8O51Ap6cR3 i2XbRBwlL3OdIm3u7LxhvhxCwHm+xoTjTJBV+s3RNJINRdzKJ5p/URe7pHc9os/zG0n+2za2d A6GRc+kZgVAbTore7ObSc6d++ZnfOcK3ANNatOUF/DUtct3LcPwmiMdZTuP6qiv3zRahbm+kR c8wcrFWF8IOjfCYGj42TjSxz/9HhPs6rHIXyR40NQcziHHQMDonaGv0Riui4cy1diwC0cwq5T PfbaHkkp1w7Hox1xPQfgxzTt7BcB9b3Nznwf20Kr4vmL323d9bHGaIddTF8sJtQbPw5aqCIA/ sQtXJ8wPGsZqqFpHR13iRwYj0plB/C0sqlRBpi3YuGp0qbWnsXDSHFdv0q1QWQ3zH01jB/ipf PxdfD2epV+Xg2e6cFaxdB+kbdulcMAOYXHFTq17BXTATwIRRCi2b+1fYr49gqtmhSh+RrVrwF jVysRUnrx2llk/0JLN0MAi11znldRchik9TLq8Urojpz7dPyhxf1H7kCAlxQFe8CB4kXwhi6G UrIiqrxjQTKxFwTDy3od33T9Xm6SAcT+WwJlYS2kX1bk6iYcoIG7yMcTeD88stMPTrL4I44d3 6PffckfAXooOoxGYn18u/kzXqOWaExACZ1qW/7T9jreSlUXuW79gbQJrp6ZxET5/K806+KOPu Abz9Zk1bn/SEYr2cEczrVeY3AmN1rUC96W1ugw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org don't need the temporary variable "dev", directly use &pdev->dev Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/gpio/gpio-janz-ttl.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c index b97a911..91f91f6 100644 --- a/drivers/gpio/gpio-janz-ttl.c +++ b/drivers/gpio/gpio-janz-ttl.c @@ -144,18 +144,17 @@ static void ttl_setup_device(struct ttl_module *mod) static int ttl_probe(struct platform_device *pdev) { struct janz_platform_data *pdata; - struct device *dev = &pdev->dev; struct ttl_module *mod; struct gpio_chip *gpio; int ret; pdata = dev_get_platdata(&pdev->dev); if (!pdata) { - dev_err(dev, "no platform data\n"); + dev_err(&pdev->dev, "no platform data\n"); return -ENXIO; } - mod = devm_kzalloc(dev, sizeof(*mod), GFP_KERNEL); + mod = devm_kzalloc(&pdev->dev, sizeof(*mod), GFP_KERNEL); if (!mod) return -ENOMEM; @@ -181,9 +180,9 @@ static int ttl_probe(struct platform_device *pdev) gpio->base = -1; gpio->ngpio = 20; - ret = devm_gpiochip_add_data(dev, gpio, NULL); + ret = devm_gpiochip_add_data(&pdev->dev, gpio, NULL); if (ret) { - dev_err(dev, "unable to add GPIO chip\n"); + dev_err(&pdev->dev, "unable to add GPIO chip\n"); return ret; } -- 1.9.1