Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3244549rwd; Fri, 16 Jun 2023 14:35:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4fGAp8/k4DWbzgxkTOE/cFUHBrnvhYKfxb/7VwNm6Sn3yzAa7T5Fjzi09AfJI4dnsxfXHC X-Received: by 2002:a17:902:f7cf:b0:1b3:d27b:32b0 with SMTP id h15-20020a170902f7cf00b001b3d27b32b0mr3126535plw.7.1686951326908; Fri, 16 Jun 2023 14:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686951326; cv=none; d=google.com; s=arc-20160816; b=PEQggA9XQnYmsUmrWwIfkWbcZASZai5w0HnvA19CpaGUYE/J9iQY/5MxPBHPzvWyYe tdK4I6DXtPqHSH2im1DPxM4JeoBHUj82QIwBjB1DLFJ6sqxDE62lfWmQ/5HvXVaZW80T 7dQq5gVjD/D8C30GIS32Oa0bM8pEPrkKuLorbKe0nALMiR7RwHKTBZP6ViJb4oqu1OLN C4j0JMnJBVT20sreot4MO3bSy3bVO5t2yCYGUXgk/h3WBlCv8GZcUIVj7WdXueq55Rnv VJwun7PM2xJolXG6paXRI5fyNnFiuQCPOJhr95dZgIevWZMC2ZXhJgd8qcNxK9qNlR1O BEVQ== 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=2W0/s9Ei/3O15AUKoqqy+U+PAyRYFPdruzdJ33WOGco=; b=XhNCny5bgxupfMSSJ4VVKRgjD9gHWIrFTM80BHSQn/ULCZjZyDylnsPUK6mPo5hxt6 e43SVsUTszO82iV8PeJRLYDd+YG+L/DkDYxiWyVOLXk5Qqk8jnoehXMnZXQn2UqBOLpx 0r6Ua4qgyuntwmft5avkB0WeiRppe0d/WQefGDjV6mnQ2YuJLyP4naKwFYbDO54OzpLI +Dbe2r7k5B4voKHxqrOaph5t463YhYOmgD4zvrwIxdaH/cg+fCgE2GWhi6cXe25BRfHu 3s4lzqfNT0c/tdl7dptjSLzSiOcUNavdM7zjJTcVzeBzgaO+b1+p4xzka3GDMlZD88n3 ys+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b=IlbipCUn; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rocketmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a170902ba8300b001afc602cd5esi15372320pls.90.2023.06.16.14.35.09; Fri, 16 Jun 2023 14:35:26 -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=@rocketmail.com header.s=s2048 header.b=IlbipCUn; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rocketmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345772AbjFPVLf (ORCPT + 99 others); Fri, 16 Jun 2023 17:11:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345565AbjFPVL1 (ORCPT ); Fri, 16 Jun 2023 17:11:27 -0400 Received: from sonic306-21.consmr.mail.ir2.yahoo.com (sonic306-21.consmr.mail.ir2.yahoo.com [77.238.176.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A5213AA4 for ; Fri, 16 Jun 2023 14:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1686949884; bh=2W0/s9Ei/3O15AUKoqqy+U+PAyRYFPdruzdJ33WOGco=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=IlbipCUnNwFJWBJMWof8BoQrRUxxcHM+casc6zwXMefAcLU4ICOt0KxjWc329Esd+HiWUrNKs/mP/Lnxwfm98qnRzCXMC5NpBSdmQH8SC29RnIE5T9OCQUbpOUL4HLco9reM2mjwqQEIzKpt3hDDOs8l7Gtr+xaeg7kBWk4MfOep/mpX248EzKVTJPA9ARIMmCTWcLlQvTy1JkPnMPO/bS5S9ZCR75iUr7gtnSkdbon9QoBsgfEqyQjFjh7iWqmZt8afYVnxKd0nNinzjtHlHKptqt/2d06dGhGYjKBgNj5evxVVHGKh3L/nvY50Od0auhRMdTNci6wbiulfSXKvMg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1686949884; bh=gYfF9Km1KkuiJgjuJx7CFL7L6+LHkiGQFKAZPKxrRos=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Pi+3f/9k2VyDUtCVS55SQvFqqMKdnGb5r2a8KD8lJL8wLHH7aj4dYdV9EVfp0BXyQ2KvyNOu/+62Ncclr5GXzuhB9Xl8PxgI5ldrjQGoog1JuKWFRs3cvZaHuOlH8G53Gy+1zQ24dDdnz8VI6TZAwWVTwsZSok6ZJtmoUBFdYMIVUdf9AdH4Mpylfn+kkyCLh7+HgDfdeedLMFsjnwOlKBSFS0Cn1gxuwZs2irYt2d/Ej+2QXZQlm5LqH0UcGXlCv4raxoYoVtGKA3uQdp1TkFVffleYb4tS5U5PYkhtjePHK9D/+Gg3TcrYM8Re9JHfi+BQn+Isex6oIdIPvUyR7g== X-YMail-OSG: ER_yI88VM1mo2Ge8EsI_.ohOcn10sxXGnW_m6.KqjdOYAnYpqKsNDVyWA98CJur p5cjWPEHhgm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YAmb77aXQq_iMyEDAV5VHsFZpdx3lKFjC_QRuDgwCG6a6AyL7U F0kzalVh9ibkeLeAM3cVju8tkmYPr6xGKFrdwG3U6BLHDfCVGpTzKbXPdP08XaiBJhhnjJuh48ek N92Xo2ROKHnls1hR0l5p9peOusLlp41zXNA-- X-Sonic-MF: X-Sonic-ID: 5be4c50b-e39c-4e3f-8b4e-f2655f0c20ef Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Fri, 16 Jun 2023 21:11:24 +0000 Received: by hermes--production-ir2-7867f454fc-gg9x8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c618d34c94eed5ad1e4505ee686233db; Fri, 16 Jun 2023 21:11:18 +0000 (UTC) From: Jakob Hauser To: Sebastian Reichel Cc: Lee Jones , Christophe Jaillet , Stephan Gerhold , Raymond Hackley , Henrik Grimler , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jakob Hauser Subject: [PATCH 2/2] power: supply: rt5033_charger: Replace "&pdev->dev" by "charger->dev" in probe Date: Fri, 16 Jun 2023 23:10:48 +0200 Message-Id: <99b76d5ed0d47f55ddbf55564a0424d67af1a447.1686948074.git.jahau@rocketmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 At the beginning of the probe function, "charger->dev" is set equal to "&pdev->dev". Therefore it's more clear to subsequently use "charger->dev" instead of "&pdev->dev". Signed-off-by: Jakob Hauser --- drivers/power/supply/rt5033_charger.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/power/supply/rt5033_charger.c b/drivers/power/supply/rt5033_charger.c index 361a36c2a195..71a237cd1d61 100644 --- a/drivers/power/supply/rt5033_charger.c +++ b/drivers/power/supply/rt5033_charger.c @@ -667,11 +667,11 @@ static int rt5033_charger_probe(struct platform_device *pdev) psy_cfg.of_node = pdev->dev.of_node; psy_cfg.drv_data = charger; - charger->psy = devm_power_supply_register(&pdev->dev, + charger->psy = devm_power_supply_register(charger->dev, &rt5033_charger_desc, &psy_cfg); if (IS_ERR(charger->psy)) - return dev_err_probe(&pdev->dev, PTR_ERR(charger->psy), + return dev_err_probe(charger->dev, PTR_ERR(charger->psy), "Failed to register power supply\n"); ret = rt5033_charger_dt_init(charger); @@ -690,22 +690,22 @@ static int rt5033_charger_probe(struct platform_device *pdev) np_edev = of_get_parent(np_conn); charger->edev = extcon_find_edev_by_node(np_edev); if (IS_ERR(charger->edev)) { - dev_warn(&pdev->dev, "no extcon device found in device-tree\n"); + dev_warn(charger->dev, "no extcon device found in device-tree\n"); goto out; } - ret = devm_work_autocancel(&pdev->dev, &charger->extcon_work, + ret = devm_work_autocancel(charger->dev, &charger->extcon_work, rt5033_charger_extcon_work); if (ret) { - dev_err(&pdev->dev, "failed to initialize extcon work\n"); + dev_err(charger->dev, "failed to initialize extcon work\n"); return ret; } charger->extcon_nb.notifier_call = rt5033_charger_extcon_notifier; - ret = devm_extcon_register_notifier_all(&pdev->dev, charger->edev, + ret = devm_extcon_register_notifier_all(charger->dev, charger->edev, &charger->extcon_nb); if (ret) { - dev_err(&pdev->dev, "failed to register extcon notifier\n"); + dev_err(charger->dev, "failed to register extcon notifier\n"); return ret; } out: -- 2.39.2