Skip to content
Commit e4c21da4 authored by Mikkel Jakobsen's avatar Mikkel Jakobsen Committed by Benjamin Cabé
Browse files

drivers: fuel_gauge: make read-only pointer args const in api



For the lists of properties passed as a pointer to the get_props and
set_props functions, there is no reason to not make the pointer const as
the called functions will not and should not alter the pointed-to data.

In practice, not having the pointers const can cause compilation errors
if trying to pass in a const array of properties.

Signed-off-by: default avatarMikkel Jakobsen <mikkel.aunsbjerg@escolifesciences.com>
parent 7960747d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment