fix(sensors): Avoid duplicate Kconfig name.

* Upstream added an equivalent fuel gauge driver, so namespace
  our Kconfig symbol for the MAX17048 driver.
This commit is contained in:
Peter Johanson 2023-10-16 06:11:21 +00:00
parent 650dd38073
commit 485078d02b
2 changed files with 4 additions and 4 deletions

View file

@ -5,5 +5,5 @@ zephyr_include_directories(.)
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_MAX17048 max17048.c)
zephyr_library_sources_ifndef(CONFIG_MAX17048 ${ZEPHYR_BASE}/misc/empty_file.c)
zephyr_library_sources_ifdef(CONFIG_ZMK_MAX17048 max17048.c)
zephyr_library_sources_ifndef(CONFIG_ZMK_MAX17048 ${ZEPHYR_BASE}/misc/empty_file.c)

View file

@ -3,7 +3,7 @@
DT_COMPAT_MAXIM_MAX17048 := maxim,max17048
menuconfig MAX17048
menuconfig ZMK_MAX17048
bool "MAX17048/9 I2C-based Fuel Gauge"
default $(dt_compat_enabled,$(DT_COMPAT_MAXIM_MAX17048))
depends on I2C
@ -12,7 +12,7 @@ menuconfig MAX17048
Enable driver for MAX17048/9 I2C-based Fuel Gauge. Supports measuring
battery voltage and state-of-charge.
if MAX17048
if ZMK_MAX17048
config SENSOR_MAX17048_INIT_PRIORITY
int "Init priority"