Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3242617rwd; Fri, 16 Jun 2023 14:33:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/b33Z0wWFFzZ2DCjZFY1Ajh3xPHInewGpElcyWwcrDijKSEu9B108Qcss/ina3fBDhZH4 X-Received: by 2002:a17:902:f816:b0:1ae:89a:a4 with SMTP id ix22-20020a170902f81600b001ae089a00a4mr3902720plb.8.1686951205605; Fri, 16 Jun 2023 14:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686951205; cv=none; d=google.com; s=arc-20160816; b=trAw1kIjElck+I/jvQBqAo0r/WLwae0PZsfqN2AYWFBmooNW7ftjGzs206JPvKptr0 aVZ6vBOaHPCdmFV9kJfH2U+7rrSRY1wW4uq0rZ7XwdC4Zd0PCF8AjVEOzSK7QY77W8PU 69ZHTax4zk9K8jDJUhQCaCU+RTeEeDm+ijqBfPcCEDW4Tzz4jh3W6TOHTQIA/NrfirlB fi/zGcpq3A2B5AptQz5GRt41QtAmTp7hcR8Me+MOFZXy8Wf9/jLrCZEo+6eUjGC0f+BD kuIeqg0EM783S7OBB2hMmSXrdxJNtmQEmffceUpyiVyT0xmdc8lj62DYUMc4CijYVcJj DnIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=GNws8JqhI1syhONxm9VFF5xmbPy95z3gs9cgYJvfAXw=; b=ePBYfJBfNbi0gt/q55E1H0n69IunOJsPACgEhrLNWfyqGrv/yGcuBZsafChTIzKSCs 8zU8hVFbVxe5vcuPNWSwbZncjiKEk2d48C/wifFKt3DKpCF7Fg2ixvHI0mS02qOXbYs5 2FVBECi70MA9GrYzB/hO//hh00Uk9ruOjUbaOwbrK4jxwVxwUmIdtHHB/N+eQ29aMeIr ZESQxuGUBm6htlMwm08PRFUmhdpnJry/vcfesJ+BTWmT3ucllh6R++YH6h4cOF7/Cg2e RJ82G9bCfNw7VV5rhiqcgsvZYXUWsRcSAnf6kF3PYNgRz5TNqEnSo/EDuvPMRoTyKSHZ Tnvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b=lRPkFImC; 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.33.10; Fri, 16 Jun 2023 14:33:25 -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=lRPkFImC; 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 S1345405AbjFPVLZ (ORCPT + 99 others); Fri, 16 Jun 2023 17:11:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345430AbjFPVLX (ORCPT ); Fri, 16 Jun 2023 17:11:23 -0400 Received: from sonic301-22.consmr.mail.ir2.yahoo.com (sonic301-22.consmr.mail.ir2.yahoo.com [77.238.176.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CCB3359D for ; Fri, 16 Jun 2023 14:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1686949880; bh=GNws8JqhI1syhONxm9VFF5xmbPy95z3gs9cgYJvfAXw=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=lRPkFImCcmJBL/XyEaTF1icEXm5P/I+XcuVf6vS6cPQfgt3qqtFGgJaBFBZRT6u8RCmgxOHknDl+V33ncl3BwJtBDbMPNzybApwtJzsF4mRCxfj9jCDP6MBznW4Ll0bs0VnC2fi3ff43vxdbXi5iwisZTbzTJJEj4dmtUo+Gxox05/PSuEteVahahz6zucrsvFoM2BtUmhmNhRL2kxBuDv+KAILstxVmrPU2gE5LZx7skka52RAfM9esyyoFIe/Cc2gQYu6b01QNVLlKH+z/2qV2hANRWjqJp0x3cS352pKSEpY4AHmjvg3c/WFBAI64BuT6u5oGO4HiHdqGERDBzA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1686949880; bh=INBTJ5UOPVoKkiBDPrIgd04zR/zK15ksy6pKMr72xsh=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=DZYSmZkRrpK4h7Px24yBydwLIbwTTj8bHMuOpV74ERcxv/pDbFp91K/LCH6Mggr7+DQYjj+b76Ap90NLEZw0WEtz3+V2QeftWMPNK0926L/vHMNzb2Icv0JKZMmXAy94E06EyDJXe3Egkays+p362+NMm+4bA8OGV7a4Ql8btqqA2Yke67hAGHByKbvzxZmEPIagU6JJOuLw5NQK8wQbxB8D6ax12nvM4azt7Sl4gyoVQ01UfTbc7iSgED8Gnh1Uot7OktxRsAspQzavxnWcH06ZEPEEOwH2/a8XHZlUOgrtDawBXFiJkVr3x9spML1s1QnTVbDYuDYletR1m6gdYw== X-YMail-OSG: TU3BL_4VM1ndNiGo.VTvovAWBLDENUB4DeHYOGNbYrbj0TjThkxZYXBqfhKKTVx pAADlkVsF08mKQkkQ2a1oLm_VGlY7gFjki_QUDL4dHdTa8GvF7pyVcNi42u9e5fXMo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eNSF JPVWhGcMlh63TbQ2W_ImxfXC.nUNdvRCUj0OY3n6C6zeRfM0qLCjARg28XglAGTKOlMSpsPbG31y kubn7sBg0YxKWZV5gKQp382EOlOWdkSM1 X-Sonic-MF: X-Sonic-ID: 50239dfa-8d14-4e9b-a02d-f9422d0bfe68 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ir2.yahoo.com with HTTP; Fri, 16 Jun 2023 21:11:20 +0000 Received: by hermes--production-ir2-7867f454fc-gg9x8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c618d34c94eed5ad1e4505ee686233db; Fri, 16 Jun 2023 21:11:16 +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 0/2] Clean-up RT5033 charger "rt5033_charger_data" and probe "&pdev->dev" Date: Fri, 16 Jun 2023 23:10:46 +0200 Message-Id: X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit References: 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 During the review of the series "Add RT5033 charger device driver" [1] I noticed two things I'd like to clean up. Additionally, in v5 of that series, Christophe Jaillet pointed out an unclean error handling of function "rt5033_charger_data" [2]. The clean-up solves this as well. As I didn't want to disturb the review process of the series in its late phase, I now add these clean-ups as a follow-up series. I was a bit surprised about the patchset "Add RT5033 charger device driver" being added via the mfd subsystem. This clean-up series affects the charger driver, which is actually part of the power supply subsystem. I'm not fully sure what the series should be based on and how it will be applied best. Additionally I just realized that in the immutable branch "ib-mfd-power-v6.5" of kernel/git/lee/mfd.git one patch of the previous series is missing. Because of this, I currently can't use linux-next or mfd.git as a base. Instead I based this clean-up patchset right on top of the previous patchset. An instance of that base can be seen on my GitHub page [3][4]. [1] https://lore.kernel.org/linux-pm/cover.1684182964.git.jahau@rocketmail.com/T/#u [2] https://lore.kernel.org/linux-pm/20230514123130.41172-1-jahau@rocketmail.com/T/#mbe33ab528f3d8ae136f01b13f45a9be35c0ad061 [3] https://github.com/Jakko3/linux/commits/rt5033-charger_v6 [4] https://github.com/Jakko3/linux/blob/rt5033-charger_v6/drivers/power/supply/rt5033_charger.c Jakob Hauser (2): power: supply: rt5033_charger: Simplify initialization of rt5033_charger_data power: supply: rt5033_charger: Replace "&pdev->dev" by "charger->dev" in probe drivers/power/supply/rt5033_charger.c | 43 ++++++++++++--------------- 1 file changed, 19 insertions(+), 24 deletions(-) -- 2.39.2