fix(driver): Fix broken compilation for MAX7318 driver

This commit is contained in:
zhiayang 2023-09-04 04:04:15 +08:00
parent 28ce23d489
commit 7fab6723bf
No known key found for this signature in database
GPG key ID: 5E2F30AD6F08571F
2 changed files with 7 additions and 10 deletions

View file

@ -12,16 +12,16 @@
#include <errno.h> #include <errno.h>
#include <kernel.h> #include <zephyr/kernel.h>
#include <device.h> #include <zephyr/device.h>
#include <init.h> #include <zephyr/init.h>
#include <sys/byteorder.h> #include <zephyr/sys/byteorder.h>
#include <drivers/gpio.h> #include <zephyr/drivers/gpio.h>
#include <drivers/i2c.h> #include <zephyr/drivers/i2c.h>
#include <drivers/ext_power.h> #include <drivers/ext_power.h>
#define LOG_LEVEL CONFIG_GPIO_LOG_LEVEL #define LOG_LEVEL CONFIG_GPIO_LOG_LEVEL
#include <logging/log.h> #include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(gpio_max7318); LOG_MODULE_REGISTER(gpio_max7318);

View file

@ -12,9 +12,6 @@ compatible: "maxim,max7318"
include: [gpio-controller.yaml, i2c-device.yaml] include: [gpio-controller.yaml, i2c-device.yaml]
properties: properties:
label:
required: true
"#gpio-cells": "#gpio-cells":
const: 2 const: 2