mbox series

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

Message ID 20241005-power-supply-battery-const-v1-0-c1f721927048@weissschuh.net
Headers show
Series power: supply: constify ocv and resistance tables | expand

Message

Thomas Weißschuh Oct. 5, 2024, 10:04 a.m. UTC
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,

Comments

Sebastian Reichel Oct. 15, 2024, 9:01 p.m. UTC | #1
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,