Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp934216rdb; Sun, 1 Oct 2023 11:41:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+nkp0+TEtqEX5R3xkDtmUq14OgWeERO7UFJrKH1NmR+ElP7xfDbr5/wSKJXkAS9ULqJUB X-Received: by 2002:a17:902:b282:b0:1c7:37e2:13fb with SMTP id u2-20020a170902b28200b001c737e213fbmr8308962plr.55.1696185678524; Sun, 01 Oct 2023 11:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696185678; cv=none; d=google.com; s=arc-20160816; b=IwpLsm7oF3odT5gwZpK5WUbJzr+tZjtVsNhEmSs130mOhhpXvs/rCxZQNNvNSvPdGQ n1KnvYBRHQrsqmlb329uyYp9jLU6t4b55IsIe1KtpFDScTJ9BlAC+AnuPgmBMdF0r/Im Yb1kXS5NNNw4+3xEL3hzgwBs5T0tv3KT2Hzy8yaUiVL9CcUaC3TSmlITLicF77DMCwmW gtW4O66jQpoEyNbtdCVajIuLxixjIjS2porF74UD2hfxdiUvCpgEmwGrqdoqZ/lCRzJ+ GhxdvWpdHl5lbkeRMjElCavP+DqrPYngnl6vngVFcZwRNzvrH+xg9Qm6Wi3I2z1vPvw8 3Tdw== 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=NrGEaXuo3qONt4iYWwk333mxZgkfISVjy7F99owrZw3grIXJ8ZBV/Vjs7Z2+JXOQKA Kw9oWY8+M6aryPPuZ7COcdZHYF3DCKzAqwLB3FPfMt8l/aexkrntx4Pldms0Z9VWTHgY fSe66iNvKx+1rPf+8ZziWDgLE9HKRcx6FzH67fXP43JLl08feL/qfpzNacvCqv1x3OUl AR6eWBf2mGiObvdilZwZNmc2w42nqs7DAsahjmmazSKgvmwNXInAULktpfqd50X81fdG rSQ/+hYsNwKyCwkugRFCTF9Z1SDsg6cwxGEtdOXvTcONk7xijOga6d089KXO1chTwB83 P6vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b=km7J2LHQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id c10-20020a170903234a00b001a6bb7b7a44si1329690plh.307.2023.10.01.11.41.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 11:41:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b=km7J2LHQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 2B2BD82289A5; Sun, 1 Oct 2023 06:18:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235019AbjJANSJ (ORCPT + 99 others); Sun, 1 Oct 2023 09:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235007AbjJANSF (ORCPT ); Sun, 1 Oct 2023 09:18:05 -0400 Received: from sonic313-20.consmr.mail.ir2.yahoo.com (sonic313-20.consmr.mail.ir2.yahoo.com [77.238.179.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 678ADD9 for ; Sun, 1 Oct 2023 06:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1696166280; bh=MHEdXKWgThv2pqabF9UjOZv402c0QNNym8Ltis9HYLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=km7J2LHQYmud1FCYexf626JMxhdSkO7ua49RJKz0npDMBGBJ+1OZYx9fGRHwYOuSmD0YjWq1juCebqNsxnB7/5pTcaBgtjLsCNPZYhYXO7FssDuOj31xWgySQRuAR0WOuqHrnpv+WIc+Udd55ryr4JjaYkrfFXXc9UNiUZBoyUqLq8UtVq6V0cdTb2hbwtLWV3qfsVBXuLpYqKw4KpCAoO8rWHF2lF9mfxh7fjE9/f8k6ynDbtxWWsfvvM6QV6drbfi9QdgJNdWIvOzZKe0ng81rO1KTTeYteJcFiQiYGNYC0KgqnOJSfMUTKqxHHJprFQo8PRQBNMoQmRQ5hAKflg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1696166280; bh=kNcZemSUi2+D3ss30APZIzYpXe0nI8JV+0reMuCszb6=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=P+CmfwN9eWi0ZfMtCT6UhI5RZCCPTzRQdhKCsqsN3gVXw63jRr1GqAvVGOekaFYE6fKTXwmOAgvMRE/ceSDn0CSVBP4ZxaP/NabbH47RSkhPMhHfyKEJFLWp3SEkCxZVla0nvUgWVea78l9gKthwhDB8wBqUErJWZpw1K2MbQNiQ8JgKn/4KMxf+/3gjQUWmubtXG/LvB9k6LxFEvk+hUOb54qEXEh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2W.VrXPqESVGNzpc2ut ZUXU_8L5xcjLSiorvrUMq0Da1B22tY2bv_L0LmO.T2E6towHok6qzSdvy2B5zfMrYYoJZo5aoUKo r8sz3gY5lcksVM3QPwfal.Y47o.B62zx4eqQqmNstloHqjq4lDUhkEkD_bZbTsjYT4v3VN5oyJMk zENtHuD0sU62b.BEntu_T2aHzhBLlbipBn4dLR6y7MRAbZ9R.Vi5sNwUsF6NPkseSWD._WN_OBwO PTOzo3ADjg_j6kqkBVDU3cloVtSWPqWJFXbijLMW.bkeorevp6uVzB1j9PU1jCf_FFL5Gkl4Qz94 18eUuO8My87lx_YpAWfPAKvV2lIMYmA-- X-Sonic-MF: X-Sonic-ID: f973a497-d7a0-461c-8257-f90b4180dbcd Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Sun, 1 Oct 2023 13:18:00 +0000 Received: by hermes--production-ir2-55db9d9d5-gk4f2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f1c2828dd5bee1de58f8566f5b57afb9; Sun, 01 Oct 2023 13:17:59 +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 v2 3/3] power: supply: rt5033_charger: Replace "&pdev->dev" by "charger->dev" in probe Date: Sun, 1 Oct 2023 15:17:44 +0200 Message-Id: <39b4f00e010446e453905c8dc3ca1e47e9f2c5f8.1696165240.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.6 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 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 01 Oct 2023 06:18:26 -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