fix style issues
This commit is contained in:
parent
72e83db34a
commit
90b88d9af3
3 changed files with 15 additions and 15 deletions
|
@ -4,20 +4,20 @@
|
||||||
DT_COMPAT_MAXIM_MAX17048 := maxim,max17048
|
DT_COMPAT_MAXIM_MAX17048 := maxim,max17048
|
||||||
|
|
||||||
menuconfig MAX17048
|
menuconfig MAX17048
|
||||||
bool "MAX17048/9 I2C-based Fuel Gauge"
|
bool "MAX17048/9 I2C-based Fuel Gauge"
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_MAXIM_MAX17048))
|
default $(dt_compat_enabled,$(DT_COMPAT_MAXIM_MAX17048))
|
||||||
depends on I2C
|
depends on I2C
|
||||||
select ZMK_BATTERY
|
select ZMK_BATTERY
|
||||||
help
|
help
|
||||||
Enable driver for MAX17048/9 I2C-based Fuel Gauge. Supports measuring
|
Enable driver for MAX17048/9 I2C-based Fuel Gauge. Supports measuring
|
||||||
battery voltage and state-of-charge.
|
battery voltage and state-of-charge.
|
||||||
|
|
||||||
if MAX17048
|
if MAX17048
|
||||||
|
|
||||||
config SENSOR_MAX17048_INIT_PRIORITY
|
config SENSOR_MAX17048_INIT_PRIORITY
|
||||||
int "Init priority"
|
int "Init priority"
|
||||||
default 75
|
default 75
|
||||||
help
|
help
|
||||||
Device driver initialization priority.
|
Device driver initialization priority.
|
||||||
|
|
||||||
endif #MAX17048
|
endif #MAX17048
|
||||||
|
|
|
@ -188,7 +188,7 @@ static int max17048_init(const struct device *dev) {
|
||||||
|
|
||||||
// the functions below need the semaphore, so initialise it here
|
// the functions below need the semaphore, so initialise it here
|
||||||
k_sem_init(&drv_data->lock, 1, 1);
|
k_sem_init(&drv_data->lock, 1, 1);
|
||||||
|
|
||||||
// bring the device out of sleep
|
// bring the device out of sleep
|
||||||
set_sleep_enabled(dev, false);
|
set_sleep_enabled(dev, false);
|
||||||
|
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
description: >
|
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"
|
compatible: "maxim,max17048"
|
||||||
|
|
||||||
include: [i2c-device.yaml]
|
include: [i2c-device.yaml]
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
label:
|
label:
|
||||||
required: true
|
required: true
|
||||||
|
|
Loading…
Add table
Reference in a new issue