Skip to content
Commit 640958de authored by Daniel DeGrasse's avatar Daniel DeGrasse Committed by Benjamin Cabé
Browse files

drivers: sensor: npm13xx_charger: fix build warnings from native_sim



Fix the following build warnings highlighted in this driver while
building with clang targeting native_sim:

- exp() expects a double, so passing a float would cause type promotion
- variable declarations within C switch statements are a C23 specific
  extension

Signed-off-by: default avatarDaniel DeGrasse <ddegrasse@tenstorrent.com>
parent 350a5ef3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment