Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2810408rdh; Wed, 27 Sep 2023 13:28:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4keY165Lv1Zv2hFhBXWC3vTJ8rnHu49Fv4ZBRsjgKjjmEqz1++dMhZ7KJ5FoWM60ktNCS X-Received: by 2002:a05:6a20:3c92:b0:15a:f4e:620d with SMTP id b18-20020a056a203c9200b0015a0f4e620dmr3476153pzj.4.1695846529881; Wed, 27 Sep 2023 13:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695846529; cv=none; d=google.com; s=arc-20160816; b=mV/fe1RshSyKYVfCpN2zXvCyww0KK/7tx4g4qFKX0oeCxjp1THS4RWXDcwQwCHiqDU fFt4wmTEfSSXD7TdFqrqJWoWs/ejqEBFdwESEjZ+VsYV7rjCprzeK5o5MfACr4X/xet7 pdt+OPw9izoKA6a3l4a7TjScoPe3SUA1gwQ2sNANRr5zQ9VvoxxZnzGSrpG1O/KklTPD CCjorxBpLL2erL/c5jWgJOLF/jb/o09tWMgsW91jho7yT+fCr4X1+RXej0tUyPT8PORc EQfpbOvjdLN6JOBVjTLRCVgyWS9xieYwlDEFb6SFujJZ+ginTGhu6WJd3pJM7lX2KxhB 7e0A== 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=MHEdXKWgThv2pqabF9UjOZv402c0QNNym8Ltis9HYLc=; fh=nz7VNHiZPehN5kI1Zu9EriA/WIR1rcAjRtHa5jFbAAo=; b=EJCiQ/X+iR8RiwTCklPSBrG736BW4Jx4uE0Fd6rd/MvgX1QsDSYfHPYecX0OECOoQ/ MV/0jUGXjjFpi3GC1NCx/PM6HW1PeDEHqsYf6CP/wYVdXjrOUAMdWvy0lmPDxrkQ1g4R 3o6pj+zVx5miUb18uBv6HRQjwXcwp58WTlNqNrS935a9muJXMlLocSbOB8zy7BknAeib 6zk+UH/+jjm+fz8uV50yZPPO0SFqfIPTwkghaFi3E3a2e8zFuJD6niF4orfyWT96eoiL pJ2dSLYnVt1S8boSDUe23ZS4RgJk91W1X5exGp+chhdkx//VrLbgzQ7y+xLrY0Y2eiFS RvlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b=KtlM9Vyg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id kk4-20020a17090b4a0400b0026cab818aa2si20453070pjb.100.2023.09.27.13.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 13:28:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b=KtlM9Vyg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rocketmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id ECC54806082C; Wed, 27 Sep 2023 13:26:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbjI0U0b (ORCPT + 99 others); Wed, 27 Sep 2023 16:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229825AbjI0U0Y (ORCPT ); Wed, 27 Sep 2023 16:26:24 -0400 Received: from sonic310-11.consmr.mail.ir2.yahoo.com (sonic310-11.consmr.mail.ir2.yahoo.com [77.238.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D7EE191 for ; Wed, 27 Sep 2023 13:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1695846381; bh=MHEdXKWgThv2pqabF9UjOZv402c0QNNym8Ltis9HYLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=KtlM9VygzRqte/dQRO+OyuyoGTSOKva8KK4V5BmJ474ojShwI5sDtM6bNGgL3xafLxPYsl5l8zMwu+EzBnd0DInnciIqUme5ehQUDD1h0VXNpOUwUm2pwIaYEXtSIjCp0T9AcXE8EV+IYcagLqPKPO/m4FawfS1vu/jG4oUKFDSE5PtFdX53YxeIaP0vx8l4t/Xx4O5E3vhOuvdSrt5btQKVWkN/zFhQhTQ3CwnMjQcLT51tMl4xRy5zmE9DKLtiDLJZ3mGvW+V49iTazDyyMQSOjJ81T2IplL2y/NcWl3yhgmRri9jfmT0YsoNHgcch4Kn+B/aowa6XngnE/JTGTg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695846381; bh=GxxqXNJ3e+VasoBgp8213Nx40oGIR3iF/SRLCRRcjJc=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=CZFNb/T7RDBJLySO2VweXwkRYbcA0ygnhj4tjRhWrWKW++ADHYYBrWzDwnQDkpP/4B/S164WMdyhVu7AS0ypmL2HghnnAk+aloeyHMfJqy3yEpQzROIDSZPooIFp5jYF7XpL6zUDap7ftQ+PZl9+UWu0zHZNnMieiamIU/AJ7STqhXWQGoar3j3U3TeND+/jxd9RzqPZ1ihgif82PzxMVUY6pHBTF/Cpn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exdwb7tlyrz0U1QQnV ZYCFZqgdhuys7.KZO7g_Eah99N5e5ZsO9W__bvIXYTDKZlwR8ALUh6iRAAQ02U1022O0HniDoDNM 8kIb602eogZ.tMtQppStH_A9Uz2JwWp2pbxtdC6ajVAO0iriwm11NPOK_KN87K9Ogx.27o.oRr2M 6KZPflqJPWvVdeUf3PfpCGhz3Hh6UOLp7UZtoN4EIiCmTLQ4EhV40w2lZZq3mweLJq0lQeB__lz_ Fm3fJ8LVzCEIZij7ez3od5FG.Jx_JH4fljSJ33cOY57rtOquOsfLD.R6Zl7rZe0SZbi89jIHFRWr AwkynY200zX57HwoNnN6rKNccxyVU7ozRc98D X-Sonic-MF: X-Sonic-ID: 394b8963-67df-4bea-8323-7de61cddd7a8 Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ir2.yahoo.com with HTTP; Wed, 27 Sep 2023 20:26:21 +0000 Received: by hermes--production-ir2-55db9d9d5-5hvhf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1d998f486e26fd309cd8d11c694d3a2b; Wed, 27 Sep 2023 20:26:19 +0000 (UTC) From: Jakob Hauser To: Sebastian Reichel Cc: Lee Jones , Stephen Rothwell , Yang Yingliang , Christophe Jaillet , Stephan Gerhold , Raymond Hackley , Henrik Grimler , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jakob Hauser Subject: [PATCH 5/5] power: supply: rt5033_charger: Replace "&pdev->dev" by "charger->dev" in probe Date: Wed, 27 Sep 2023 22:26:02 +0200 Message-Id: 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=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 27 Sep 2023 13:26:58 -0700 (PDT) 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 b34ef0ea6f8a..d19c7e80a92a 100644 --- a/drivers/power/supply/rt5033_charger.c +++ b/drivers/power/supply/rt5033_charger.c @@ -678,11 +678,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); @@ -701,22 +701,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