drivers: sensor: sbs_gauge: constify device config access
`const` was missing from one device config access. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
5efb4610cf
commit
30971b51ba
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ static int sbs_gauge_sample_fetch(const struct device *dev,
|
|||
*/
|
||||
static int sbs_gauge_init(const struct device *dev)
|
||||
{
|
||||
struct sbs_gauge_config *cfg;
|
||||
const struct sbs_gauge_config *cfg;
|
||||
|
||||
cfg = (struct sbs_gauge_config *)dev->config;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue