Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4169407imw; Tue, 12 Jul 2022 03:15:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v4VJHAkttp1MassdpiVYsc1RDECnhxnj6suHWPkS/rpBb2XHgvnY4jvu28CFpCUuaLsIZd X-Received: by 2002:a63:e54e:0:b0:40d:5507:f471 with SMTP id z14-20020a63e54e000000b0040d5507f471mr20233010pgj.410.1657620923946; Tue, 12 Jul 2022 03:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657620923; cv=none; d=google.com; s=arc-20160816; b=NkdFHA9hbg+5efcj4v1rlqzWrW7k2q8na9+L9u/QlkQVkY6rNlW3fC6IdaaGX64Bu8 jWgoGMSlXT6FolNP/PXGD2aonpfHYEbpvOYjlGBblEjUNCKyIRkbG+ZkZqCCsHbJ5Jfm oJC0bNxl7mYSe4RiTCXULpLv4wAmzK4jQk2pNP2kbam7GFeeu2Rj4DFKV3psnqoDNFeD aaUH6tTbX/cqaaxoCknoZTaqNdf19b0tUQbl41Hqrv2wlHjDzvhV0Be718n94qqkO2bx hhAvyfZBCzykQFRZYhppud6BEyy+WkB+sngLN5E8LoJ90quWEbYb/eufgXG+3aHn5+pd mBVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=N/5YHVYkMP3FSk3QX5wWOUuw+qNa02mfKY0l3vaai+I=; b=l7gs+m4uYzK8wJZnVhiELex6/S63K/l63OlU89kh8krh/BvN/jqvQwBBBFYDJPNwWD rD2zDCoX34q5MFlrD4rPXSuxmKT+DUeYqEeVvjblaKw57wuudWYz2GYhqC8QkNEOiI3x +/pmLYG+Ub2tY98Zu7XYwwS8RsXGNF5Rq0i0R13cVDiPDUTy0VqlL76GUc7wooivLpdw HuwwXdnNznEl0U0lSfq51CoSUJZGmeBOMVqvRuucoBhIfnx/ADVJjYyDU29Wz+0Ij6HU dKnVqXlXtBSw0g+Xq1i7v6iC4EZ/3fZk/cFMJYRC62UELYbyy6BSk0QfA+3IsKW3zBK/ v7NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=AySovvk3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a170902ce8200b0016c3dd10160si12997348plg.603.2022.07.12.03.15.07; Tue, 12 Jul 2022 03:15:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=AySovvk3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232709AbiGLKBd (ORCPT + 99 others); Tue, 12 Jul 2022 06:01:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232531AbiGLKBU (ORCPT ); Tue, 12 Jul 2022 06:01:20 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DF79AAB09 for ; Tue, 12 Jul 2022 03:01:19 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id q9so10428338wrd.8 for ; Tue, 12 Jul 2022 03:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=N/5YHVYkMP3FSk3QX5wWOUuw+qNa02mfKY0l3vaai+I=; b=AySovvk3fqw+yPROzYVXmrN80AINP6EYyxGVLHxu5IbGL2S7n/MYulgDYMHTAf6Lmk 4XS+YiRUfoDvfQkR5N6zjxahWi28433Wkf1ff4S6gJ7uYKsgMI4oEED/JmnxTcLw3hfT qEtW+4ZkUYDScQbLmIXpBYPpVmFhdsU48Qkpm6TYd8OdKj3VLU9WOvzE3tL8sjW2IdFk Piqmeg1iNXgxibtP40ILhdo7zweUt8+43EDUMzJEA/3gqFgg717QrbBHl7cHCcHBkYce Oz9zAjP+kpmw08P2dDEi74E+Mli8eFGQIx4SX8N8WDN4oerMzQWMXnaqBVobzRN4moTV uRcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N/5YHVYkMP3FSk3QX5wWOUuw+qNa02mfKY0l3vaai+I=; b=h6miSq3g40f0ur7liwu1fLq7/dhI1Z15826z/CoZT/cYqWGK9I4kn3jg81crjbkywW VK5Xy3+G0JZBmibg+MVhg3DxBJVJKVp4VRjxVfj5FvHIZ750W5oP9HERUwa/t//Lhzpo UbyktFkkCZRcxOhF8qEF4HI8JQHsaiiXw84tCgIOvFgnxxWjFExoEya6YKCOVNOPjM6f nc6ea0Jisr2zrWZSisOm6TX6owdBXiX/fS06NiY4A0StABc5QUxeLkWZ6ADNcT7WqO1N 0C1Y1xDbUU0yaVGjH7vj0ivZ2vhZlVfTBx1ceRWZuPJrnH76S8u2FTPpxnCTqRqZczw4 7Zfw== X-Gm-Message-State: AJIora/VbhK85+3FasnV0NLwLLXM0UmyAik9s26GTL9ti46O6lKy9/f0 LJHdLu/Athxp64p14uP3tXqQEg== X-Received: by 2002:a5d:4e0f:0:b0:21d:8ca4:2563 with SMTP id p15-20020a5d4e0f000000b0021d8ca42563mr21549143wrt.272.1657620077096; Tue, 12 Jul 2022 03:01:17 -0700 (PDT) Received: from rainbowdash.office.codethink.co.uk ([167.98.27.226]) by smtp.gmail.com with ESMTPSA id u9-20020a7bc049000000b0039747cf8354sm8895314wmc.39.2022.07.12.03.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 03:01:16 -0700 (PDT) From: Ben Dooks To: linux-pwm@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , u.kleine-koenig@pengutronix.de, Thierry Reding , Krzysztof Kozlowski , Greentime Hu , Jude Onyenegecha , Sudip Mukherjee , William Salmon , Adnan Chowdhury , Ben Dooks Subject: [PATCH 1/7] pwm: change &pci->dev to dev in probe Date: Tue, 12 Jul 2022 11:01:07 +0100 Message-Id: <20220712100113.569042-2-ben.dooks@sifive.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220712100113.569042-1-ben.dooks@sifive.com> References: <20220712100113.569042-1-ben.dooks@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The dwc_pwm_probe() assignes dev to be &pci->dev but then uses &pci->dev throughout the function. Change these all to the be 'dev' variable to make lines shorter. Signed-off-by: Ben Dooks --- drivers/pwm/pwm-dwc.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/pwm/pwm-dwc.c b/drivers/pwm/pwm-dwc.c index 7568300bb11e..c706ef9a7ba1 100644 --- a/drivers/pwm/pwm-dwc.c +++ b/drivers/pwm/pwm-dwc.c @@ -202,14 +202,13 @@ static int dwc_pwm_probe(struct pci_dev *pci, const struct pci_device_id *id) struct dwc_pwm *dwc; int ret; - dwc = devm_kzalloc(&pci->dev, sizeof(*dwc), GFP_KERNEL); + dwc = devm_kzalloc(dev, sizeof(*dwc), GFP_KERNEL); if (!dwc) return -ENOMEM; ret = pcim_enable_device(pci); if (ret) { - dev_err(&pci->dev, - "Failed to enable device (%pe)\n", ERR_PTR(ret)); + dev_err(dev, "Failed to enable device (%pe)\n", ERR_PTR(ret)); return ret; } @@ -217,14 +216,13 @@ static int dwc_pwm_probe(struct pci_dev *pci, const struct pci_device_id *id) ret = pcim_iomap_regions(pci, BIT(0), pci_name(pci)); if (ret) { - dev_err(&pci->dev, - "Failed to iomap PCI BAR (%pe)\n", ERR_PTR(ret)); + dev_err(dev, "Failed to iomap PCI BAR (%pe)\n", ERR_PTR(ret)); return ret; } dwc->base = pcim_iomap_table(pci)[0]; if (!dwc->base) { - dev_err(&pci->dev, "Base address missing\n"); + dev_err(dev, "Base address missing\n"); return -ENOMEM; } -- 2.35.1