[PATCH 0/7] power: supply: constify ocv and resistance tables

Thomas Weißschuh posted 7 patches 1 month, 3 weeks ago
drivers/power/supply/ab8500_bmdata.c       |  4 ++--
drivers/power/supply/power_supply_core.c   | 12 ++++++------
drivers/power/supply/samsung-sdi-battery.c | 10 +++++-----
drivers/power/supply/sc27xx_fuel_gauge.c   |  2 +-
include/linux/power_supply.h               | 10 +++++-----
5 files changed, 19 insertions(+), 19 deletions(-)
[PATCH 0/7] power: supply: constify ocv and resistance tables
Posted by Thomas Weißschuh 1 month, 3 weeks ago
These tables are nevery modified. Reflect this in the API and constify
the table definitions.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (7):
      power: supply: core: constify power_supply_battery_info::resist_table
      power: supply: ab8500: constify resistance table
      power: supply: samsung-sdi-battery: constify resistance table
      power: supply: sc27xx: use const reference to ocv table
      power: supply: core: constify power_supply_battery_info::ocv_table
      power: supply: ab8500: constify ocv table
      power: supply: samsung-sdi-battery: constify ocv table

 drivers/power/supply/ab8500_bmdata.c       |  4 ++--
 drivers/power/supply/power_supply_core.c   | 12 ++++++------
 drivers/power/supply/samsung-sdi-battery.c | 10 +++++-----
 drivers/power/supply/sc27xx_fuel_gauge.c   |  2 +-
 include/linux/power_supply.h               | 10 +++++-----
 5 files changed, 19 insertions(+), 19 deletions(-)
---
base-commit: 27cc6fdf720183dce1dbd293483ec5a9cb6b595e
change-id: 20240922-power-supply-battery-const-3722df7d16e4

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>

Re: [PATCH 0/7] power: supply: constify ocv and resistance tables
Posted by Sebastian Reichel 1 month, 1 week ago
On Sat, 05 Oct 2024 12:04:16 +0200, Thomas Weißschuh wrote:
> These tables are nevery modified. Reflect this in the API and constify
> the table definitions.
> 
> 

Applied, thanks!

[1/7] power: supply: core: constify power_supply_battery_info::resist_table
      commit: 58797abed49d6b78c7af99b03b037f20c7ffb203
[2/7] power: supply: ab8500: constify resistance table
      commit: 40d00fa5a8be87812a7acb6524eb3d8fd3ea42b9
[3/7] power: supply: samsung-sdi-battery: constify resistance table
      commit: 27fde3aa4f924793966c8aa5b10506c41ce933e1
[4/7] power: supply: sc27xx: use const reference to ocv table
      commit: 840683c341907b37173e270798607a83462118f1
[5/7] power: supply: core: constify power_supply_battery_info::ocv_table
      commit: ce20d5b9e37099a035ab34d4d3f59e1744756385
[6/7] power: supply: ab8500: constify ocv table
      commit: b7b6bf444529c2ead9416e79d8dd8a2cb832cd24
[7/7] power: supply: samsung-sdi-battery: constify ocv table
      commit: b5289ba57a27a212acad14b81ec6597ce140e01d

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>

Re: [PATCH 0/7] power: supply: constify ocv and resistance tables
Posted by Linus Walleij 1 month, 2 weeks ago
On Sat, Oct 5, 2024 at 12:04 PM Thomas Weißschuh <linux@weissschuh.net> wrote:

> These tables are nevery modified. Reflect this in the API and constify
> the table definitions.
>
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij