diff --git a/app/drivers/sensor/max17048/Kconfig b/app/drivers/sensor/max17048/Kconfig index 4b7dd9c9d7dc..8a7ec16e85d2 100644 --- a/app/drivers/sensor/max17048/Kconfig +++ b/app/drivers/sensor/max17048/Kconfig @@ -4,20 +4,20 @@ DT_COMPAT_MAXIM_MAX17048 := maxim,max17048 menuconfig MAX17048 - bool "MAX17048/9 I2C-based Fuel Gauge" - default $(dt_compat_enabled,$(DT_COMPAT_MAXIM_MAX17048)) - depends on I2C - select ZMK_BATTERY - help - Enable driver for MAX17048/9 I2C-based Fuel Gauge. Supports measuring - battery voltage and state-of-charge. + bool "MAX17048/9 I2C-based Fuel Gauge" + default $(dt_compat_enabled,$(DT_COMPAT_MAXIM_MAX17048)) + depends on I2C + select ZMK_BATTERY + help + Enable driver for MAX17048/9 I2C-based Fuel Gauge. Supports measuring + battery voltage and state-of-charge. if MAX17048 config SENSOR_MAX17048_INIT_PRIORITY - int "Init priority" - default 75 - help - Device driver initialization priority. + int "Init priority" + default 75 + help + Device driver initialization priority. endif #MAX17048 diff --git a/app/drivers/sensor/max17048/max17048.c b/app/drivers/sensor/max17048/max17048.c index 9f4bbc438d39..0c151e90f874 100644 --- a/app/drivers/sensor/max17048/max17048.c +++ b/app/drivers/sensor/max17048/max17048.c @@ -188,7 +188,7 @@ static int max17048_init(const struct device *dev) { // the functions below need the semaphore, so initialise it here k_sem_init(&drv_data->lock, 1, 1); - + // bring the device out of sleep set_sleep_enabled(dev, false); diff --git a/app/drivers/zephyr/dts/bindings/sensor/maxim,max17048.yml b/app/drivers/zephyr/dts/bindings/sensor/maxim,max17048.yml index 5032c85f0120..2ccb4058ea44 100644 --- a/app/drivers/zephyr/dts/bindings/sensor/maxim,max17048.yml +++ b/app/drivers/zephyr/dts/bindings/sensor/maxim,max17048.yml @@ -5,12 +5,12 @@ # description: > - This is a representation of the Maxim max17048 I2C Fuel Gauge. + This is a representation of the Maxim max17048 I2C Fuel Gauge. compatible: "maxim,max17048" include: [i2c-device.yaml] properties: - label: - required: true + label: + required: true