Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2551825rwd; Mon, 15 May 2023 13:21:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yCXs9+PYH1LMybtzoP4Ux8S0tIuBdldPTPJMi5KJ7UmvwSV2YnXLJ+ydrthpiwGAGr6XL X-Received: by 2002:a17:902:b197:b0:1aa:f446:d518 with SMTP id s23-20020a170902b19700b001aaf446d518mr33297823plr.16.1684182078451; Mon, 15 May 2023 13:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684182078; cv=none; d=google.com; s=arc-20160816; b=uF+K0IooascxAruPZsqWR8lfF86oB+R/KX7JoQv53vOPKk3F4PdkkeRsWkr7+PHlAr uyxiH/S8pUiQ78XgL4Wf3jq49773ghjl1FmmIk8ab/AV3oTLS8kUMUVJd2wzrQAqtQPn z2YpHl4DHW2CJLJZfYPCrUDovc6PgSeg8UfQMN9bm8Bbb6i5wGyj8TlF8GmCDKAMLwP8 fqcdnyIpOc9jDu/mSEEMYUfTNHBiu9uWBUQ5baaMF54CmO4/sikUr+qvLaJ7Z3q+fLNK KqEoAjGjSdVOElejxYScxs3zSNqGVPc+6DX680JVIDqRgFeN0y9gdSqKPm7is4wb/6eg A+kw== 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=1v+m/grXHAScwxBU4YO/Z+1o7wz/5i8+x8kx+V7NuiM=; b=gUyvGFqvXZ4/XB/sUM6DxL2moHz40n0g5LjcI3fqfkQvpTHNILWDo//df/4iU3zA0i Cju6ESRYFIYkrnOd+/65X6PIJBBaG1iS3Q/mCAsllCTyMDvitwsAbCExKkk2dtn05Cav 9loTyR0zcrGak6P4q8HEvFKYQrVGnBdAyn7G2klJZaQ53Ij3wZyoeXSctD690xBvmZSZ Oy+Em7keoSd57cWIj1Z+A3SOfAmHVIc5JeiLBgblIFguP3K/1wEG1mgirDbMCY5byr7I b082eAYWcGUbEQb1ooW7XyGmwCMg0ehpI/Jw95rxxaQI+vT1hlGR8u9+DwSGxuk2mv39 L6nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b=PFEBsqfY; 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 ja12-20020a170902efcc00b001a1a44cc945si15669151plb.580.2023.05.15.13.20.43; Mon, 15 May 2023 13:21:18 -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=PFEBsqfY; 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 S245276AbjEOUSl (ORCPT + 99 others); Mon, 15 May 2023 16:18:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245311AbjEOUSa (ORCPT ); Mon, 15 May 2023 16:18:30 -0400 Received: from sonic304-23.consmr.mail.ir2.yahoo.com (sonic304-23.consmr.mail.ir2.yahoo.com [77.238.179.148]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3BF111B6D for ; Mon, 15 May 2023 13:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1684181869; bh=1v+m/grXHAScwxBU4YO/Z+1o7wz/5i8+x8kx+V7NuiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=PFEBsqfYv+pBpmk/Iwe655XLMWfYQt9+y+t17hGDiskMATnr42gR7roIA3SY1Z5cge+G6TeohpOys9ltBbiNE+5ebcaJzt/Y9SA6zrLNBUXGdTGUGlPawc43syhS2IB9tLbCy+XuSK62mMUKWsFu6b5zVZEwmpL5qvExl9g+ksSe2EiuDrqtepE2ScReomJbgcyaw8EAHiNZLQG33AZWZpyec6wgotzjZcoq0oNIfdmjJ1OOh4+yqN5Yw7pAowzl0joKCfydIcTsVFm+w+kt/1jC23aRau0jqJkcZnIttp1KjUgKMh8Vzlybetxltjm5whrtwN1M4f7IBayIVWp7RQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1684181869; bh=HpTvbph2prhOBcv320IwZCkwngqmL/eykbAmwayqxrz=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=rW0twGpml3Y/tU2q/A5pHJWem9mTqMbyQpruoSYWai1+dfGbxWdAS1g7J0z4bUy7sgNw+SSBjcoYytPP3UIy0SsBvnCd2efMkekj1y47iIyVp7g66/sb4tmXwBWxwBI9jJYlznxPXB0hsjP5nRYzzeLDb7t9gupu5672spvQ5uJfhdv5KkKsg5EsnutQno44z6ZkKF/l5buCJWPtjZ6DkscbgPEno5Lp1ff+VbIEvQ+bwtx0osZZHEVUxoU42f4U/ADwWlY/MLXZX31daX7aUMWMX9zPgtb3WIiiIwpaZPM9yEyoFRgXwtQ3JNMs6IdVbeZs1jGTFgoY7aTiSlctPQ== X-YMail-OSG: NA0e80sVM1l_ETwenReYk.pkAe2_I9ST.CGkbAseeJO6Cyko.n6pDl2vJ5y3Zbt uNH6AMGCsTTWBcpQ51aK7nm_hfsu4OzTKMb2Utl6FgqbO76g804v7WWA41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aQAv8UJ_ViLep _ina6xnQ0aI0sGdj_lKH3raI1OdYEDGBMqGM9D4KrT9bnRHb6R.MMhWyQ2ayoNsXcHbjb9fp7Gkr yQ9abKRuM9_LMBg96qXORPWo4sg-- X-Sonic-MF: X-Sonic-ID: 29cd6d19-08f7-4b1d-91fd-9bdffd2e122d Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Mon, 15 May 2023 20:17:49 +0000 Received: by hermes--production-ir2-7867f454fc-8nkq6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID cb456a1ee9275492b492c35f2e11856e; Mon, 15 May 2023 20:17:46 +0000 (UTC) From: Jakob Hauser To: Sebastian Reichel , Lee Jones , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski Cc: Beomho Seo , Chanwoo Choi , Stephan Gerhold , Raymond Hackley , Pavel Machek , Axel Lin , ChiYuan Huang , Linus Walleij , Henrik Grimler , Christophe Jaillet , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jakob Hauser , Sebastian Reichel Subject: [PATCH v6 07/10] power: supply: rt5033_battery: Move struct rt5033_battery to battery driver Date: Mon, 15 May 2023 22:17:09 +0200 Message-Id: <20230515201712.30124-8-jahau@rocketmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230515201712.30124-7-jahau@rocketmail.com> References: <20230515201712.30124-7-jahau@rocketmail.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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Move struct rt5033_battery from the mfd header into the battery driver because it's not used by others. Within struct rt5033_battery, remove the line "struct rt5033_dev *rt5033;" because it doesn't get used. In rt5033.h, remove #include , it's not necessary anymore. In rt5033_battery.c, remove #include , it's not necessary anymore either. Instead add #include and Signed-off-by: Jakob Hauser Acked-by: Sebastian Reichel --- drivers/power/supply/rt5033_battery.c | 9 ++++++++- include/linux/mfd/rt5033.h | 8 -------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/power/supply/rt5033_battery.c b/drivers/power/supply/rt5033_battery.c index 5c04cf305219..91e1efd81f69 100644 --- a/drivers/power/supply/rt5033_battery.c +++ b/drivers/power/supply/rt5033_battery.c @@ -6,11 +6,18 @@ * Author: Beomho Seo */ +#include #include #include #include +#include #include -#include + +struct rt5033_battery { + struct i2c_client *client; + struct regmap *regmap; + struct power_supply *psy; +}; static int rt5033_battery_get_capacity(struct i2c_client *client) { diff --git a/include/linux/mfd/rt5033.h b/include/linux/mfd/rt5033.h index 3992fb2ef0a8..bb3d18945d21 100644 --- a/include/linux/mfd/rt5033.h +++ b/include/linux/mfd/rt5033.h @@ -12,7 +12,6 @@ #include #include #include -#include /* RT5033 regulator IDs */ enum rt5033_regulators { @@ -32,11 +31,4 @@ struct rt5033_dev { bool wakeup; }; -struct rt5033_battery { - struct i2c_client *client; - struct rt5033_dev *rt5033; - struct regmap *regmap; - struct power_supply *psy; -}; - #endif /* __RT5033_H__ */ -- 2.39.2