Skip to content

Commit 840683c

Browse files
t-8chsre
authored andcommitted
power: supply: sc27xx: use const reference to ocv table
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> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20241005-power-supply-battery-const-v1-4-c1f721927048@weissschuh.net Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 27fde3a commit 840683c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/supply/sc27xx_fuel_gauge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ static int sc27xx_fgu_calibration(struct sc27xx_fgu_data *data)
992992
static int sc27xx_fgu_hw_init(struct sc27xx_fgu_data *data)
993993
{
994994
struct power_supply_battery_info *info;
995-
struct power_supply_battery_ocv_table *table;
995+
const struct power_supply_battery_ocv_table *table;
996996
int ret, delta_clbcnt, alarm_adc;
997997

998998
ret = power_supply_get_battery_info(data->battery, &info);

0 commit comments

Comments
 (0)