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:
Gerard Marull-Paretas 2022-01-19 12:36:46 +01:00 committed by Carles Cufí
commit 30971b51ba

View file

@ -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;