fix style issues

This commit is contained in:
zhiayang 2023-05-16 21:18:42 +08:00
parent 72e83db34a
commit 90b88d9af3
No known key found for this signature in database
GPG key ID: 5E2F30AD6F08571F
3 changed files with 15 additions and 15 deletions

View file

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

View file

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

View file

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