Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2614060rwd; Mon, 15 May 2023 14:21:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7hB4XrI5oRqRhmbK4dSzk+mPenqZCG/E5PwZ9r83a+D7YURy0kwHtaoygwpCdrHiqCe/Zi X-Received: by 2002:a05:6a00:1882:b0:643:b8c2:b577 with SMTP id x2-20020a056a00188200b00643b8c2b577mr45991132pfh.22.1684185704693; Mon, 15 May 2023 14:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684185704; cv=none; d=google.com; s=arc-20160816; b=Or6bhYV4JjihEiv9yACRxpNQjYOWtOB7aetAS0Wki42dIEeGF6dKhjDQVzsmbFNPVu SLrGgZXH0/3tPB4C7yiErG0OBBEp6n3s950vJG0O7Voue/RupV1CB/EtbiYRpDhpU8pU FOKuW1o8MrwJoJMGctd0iEM8TZGv+I87469gbw0JHq4izimZRiu3tOo27oQAQM3r0vzy s7oJQ6D/YNRFi7c8+vRGFMNfEQEdbhER2GBaJ7hA3Cqr2uqMFDu+bvgmqFE9hxlnkwZO ZueKB0V0l3w00ADNvBEBvWH830iJbvw+eF0aPkQJ3jRupTJOJHROjcJJ6uzNvm4Vgofl 4Afw== 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=axXbzIqcz6Btjjk09g6Uoqi6aPDbz4IWkVCKOFktYTBXLkntgSvcpCx2jPRS3CwKRl DjajITP8/z9IcpLldYHVZGZ9Ztg6BPgA+yf1psk0C9YmLOvMJLL4zzkNagRQfNg6GSNW yosMUbdlM4RT1HSJNPsFFmxocpFXDL4maANIRQ2Owlhhd+62X/NNylOebL4mdGlYwg2J vBE9RQqRwX+6IwgTcIgpYI3FbRqJkkeYXaaPcbV5PXThMl4vjp6eHdO5zhogKojKR5fl m8z+aH9DJR8wVGCPODffuoEr2YN1Lxhq+GOG6grNnmNmzZZBHu3FBtp7jEXEem9fr+zS dt5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b=DhtgbbNN; 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 w7-20020a626207000000b00627e8781dbfsi18214842pfb.266.2023.05.15.14.21.32; Mon, 15 May 2023 14:21:44 -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=DhtgbbNN; 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 S245368AbjEOVDM (ORCPT + 99 others); Mon, 15 May 2023 17:03:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245298AbjEOVDJ (ORCPT ); Mon, 15 May 2023 17:03:09 -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 C577D449C for ; Mon, 15 May 2023 14:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1684184585; bh=1v+m/grXHAScwxBU4YO/Z+1o7wz/5i8+x8kx+V7NuiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=DhtgbbNNu8is8WCDmoTt3T5oC60LbqcvnaOg7iyxhKHl2fAGpRg+uli54yC0NavtP4GUy4RKtPbL5P4bB+6AqF0zw1FjtTh4QwoJtnV9U05hRk5y8LDcc2ac2ZEx48TFXuzql/+/5bDj+NV652uuXr6t+Cr5A8won0RzurFAh9xXyJa6SlVhDIAX2U64rj36ycUv93Yj+G+WMONTYepm4im02fkCRDcPYhijC8GJq3+otH+YfJddQOKsHCm0TsVTc6dZmc4XL2+8vD76xHK1sWriT4/V2CWTcYgLNEd3U9DEzzLQqNA32I9VybnGmIlMLDX344XL8enZBDXoH9cipA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1684184585; bh=3UZzEfKYDhdjz7kiDE04r0wGZyMshta7IREQt+tfcax=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=smbLLxUGZduk4LgYDfcgsPfGS/L2WqjyBt8Zt7USd5j3psaegMoN0cNeK75iAWnp+y+mR8IKWVR8lmvH9VBTr5wbQCJXClsSwwyUb7v+Bkp9cQHShCYxtQcHyeSuCUPDsuxs/EthcLLdv5y1PR5lKTS1iGbf+Po2PHNEr/gM4p1aSz6IjYIVQwmzX/EVR9EKcDdKln/0OOsWC3Q9plnZa4q8FsIT24EqPJmVIcU3AJYM1mBdFGiAGkSbhU++WdEqzqcsBoqZ3zio6p2RMexH90ejBDUa5nlsC3OswjPKMUGsrmvaT0P/dYBjn86RyCd+MHIbJZoL9jdUznQ1hSHrmg== X-YMail-OSG: OLUlxD8VM1miDDGUjZGLs3L9NHMWRPcLo3HLEluwGGW65VcEh8TO.sQzsbCFaDL gxuWCDwDbnP6iDxPkOQAI7N4Ups5._qkxHv52ppLZgV_ytrwAZGhXi1U7N0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cwsR9qyKNzKxSEpBbSIwwL4hvKVr1baNyzxsvV6M1J4gAXNLr3JJcdsvQb39CS7rYk110PL zH3ewhYcKZ7HP8C3Oq5EStVl5R6I- X-Sonic-MF: X-Sonic-ID: 289a800c-15aa-4396-a81e-04f4cf8de1e5 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Mon, 15 May 2023 21:03:05 +0000 Received: by hermes--production-ir2-7867f454fc-bgghb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d8cd4b5b48eaefdf4c621d749d286a70; Mon, 15 May 2023 21:03:03 +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 RESEND] power: supply: rt5033_battery: Move struct rt5033_battery to battery driver Date: Mon, 15 May 2023 22:57:16 +0200 Message-Id: <736e1cbee257853cb3d1da6f05c184e9a053263b.1684182964.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 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