mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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>
This commit is contained in:
parent
27fde3aa4f
commit
840683c341
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user