Skip to content

Commit

Permalink
fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiayang committed May 16, 2023
1 parent 16b5016 commit 412d075
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions app/drivers/sensor/max17048/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion app/drivers/sensor/max17048/max17048.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
6 changes: 3 additions & 3 deletions app/drivers/zephyr/dts/bindings/sensor/maxim,max17048.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 412d075

Please sign in to comment.