From: Baolin Wang <baolin.wang@linux.alibaba.com>
To: "Thomas Weißschuh" <linux@weissschuh.net>,
"Sebastian Reichel" <sre@kernel.org>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Orson Zhai" <orsonzhai@gmail.com>,
"Chunyan Zhang" <zhang.lyra@gmail.com>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/7] power: supply: sc27xx: use const reference to ocv table
Date: Thu, 10 Oct 2024 17:24:31 +0800 [thread overview]
Message-ID: <7e6434ad-e9bc-4e9a-b540-654852cebf07@linux.alibaba.com> (raw)
In-Reply-To: <20241005-power-supply-battery-const-v1-4-c1f721927048@weissschuh.net>
On 2024/10/5 18:04, Thomas Weißschuh wrote:
> The table is not modified, so constify the reference.
> This enables a constification in the power supply core.
>
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Thanks.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
> ---
> drivers/power/supply/sc27xx_fuel_gauge.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/power/supply/sc27xx_fuel_gauge.c b/drivers/power/supply/sc27xx_fuel_gauge.c
> index bd23c4d9fed43482e972ccc086311e7bfcec2d54..426d423b935b581a7673be076ae71b8899f17e2e 100644
> --- a/drivers/power/supply/sc27xx_fuel_gauge.c
> +++ b/drivers/power/supply/sc27xx_fuel_gauge.c
> @@ -992,7 +992,7 @@ static int sc27xx_fgu_calibration(struct sc27xx_fgu_data *data)
> static int sc27xx_fgu_hw_init(struct sc27xx_fgu_data *data)
> {
> struct power_supply_battery_info *info;
> - struct power_supply_battery_ocv_table *table;
> + const struct power_supply_battery_ocv_table *table;
> int ret, delta_clbcnt, alarm_adc;
>
> ret = power_supply_get_battery_info(data->battery, &info);
>
next prev parent reply other threads:[~2024-10-10 9:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-05 10:04 [PATCH 0/7] power: supply: constify ocv and resistance tables Thomas Weißschuh
2024-10-05 10:04 ` [PATCH 1/7] power: supply: core: constify power_supply_battery_info::resist_table Thomas Weißschuh
2024-10-09 16:05 ` Linus Walleij
2024-10-05 10:04 ` [PATCH 2/7] power: supply: ab8500: constify resistance table Thomas Weißschuh
2024-10-05 10:04 ` [PATCH 3/7] power: supply: samsung-sdi-battery: " Thomas Weißschuh
2024-10-05 10:04 ` [PATCH 4/7] power: supply: sc27xx: use const reference to ocv table Thomas Weißschuh
2024-10-10 9:24 ` Baolin Wang [this message]
2024-10-05 10:04 ` [PATCH 5/7] power: supply: core: constify power_supply_battery_info::ocv_table Thomas Weißschuh
2024-10-05 10:04 ` [PATCH 6/7] power: supply: ab8500: constify ocv table Thomas Weißschuh
2024-10-05 10:04 ` [PATCH 7/7] power: supply: samsung-sdi-battery: " Thomas Weißschuh
2024-10-09 16:06 ` [PATCH 0/7] power: supply: constify ocv and resistance tables Linus Walleij
2024-10-15 21:01 ` Sebastian Reichel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7e6434ad-e9bc-4e9a-b540-654852cebf07@linux.alibaba.com \
--to=baolin.wang@linux.alibaba.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=orsonzhai@gmail.com \
--cc=sre@kernel.org \
--cc=zhang.lyra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome