summaryrefslogtreecommitdiff
path: root/app/include/drivers/ext_power.h
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-11-18 16:12:13 +0000
committerPete Johanson <peter@peterjohanson.com>2020-12-14 12:41:25 -0500
commit33c959d0318a60a02e016f01adafaf71f4613fc9 (patch)
tree04a54e3aa798f803c1039b392f5b19eefd58ed42 /app/include/drivers/ext_power.h
parent3d7376d2e50adf9d807431161487e0eb19f52390 (diff)
refactor(app): replace `driver_api` with `api`
See: https://docs.zephyrproject.org/latest/releases/release-notes-2.4.html PR: #467
Diffstat (limited to 'app/include/drivers/ext_power.h')
-rw-r--r--app/include/drivers/ext_power.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/include/drivers/ext_power.h b/app/include/drivers/ext_power.h
index 6c1923e..ddc85a3 100644
--- a/app/include/drivers/ext_power.h
+++ b/app/include/drivers/ext_power.h
@@ -45,7 +45,7 @@ __subsystem struct ext_power_api {
__syscall int ext_power_enable(struct device *dev);
static inline int z_impl_ext_power_enable(struct device *dev) {
- const struct ext_power_api *api = (const struct ext_power_api *)dev->driver_api;
+ const struct ext_power_api *api = (const struct ext_power_api *)dev->api;
if (api->enable == NULL) {
return -ENOTSUP;
@@ -64,7 +64,7 @@ static inline int z_impl_ext_power_enable(struct device *dev) {
__syscall int ext_power_disable(struct device *dev);
static inline int z_impl_ext_power_disable(struct device *dev) {
- const struct ext_power_api *api = (const struct ext_power_api *)dev->driver_api;
+ const struct ext_power_api *api = (const struct ext_power_api *)dev->api;
if (api->disable == NULL) {
return -ENOTSUP;
@@ -84,7 +84,7 @@ static inline int z_impl_ext_power_disable(struct device *dev) {
__syscall int ext_power_get(struct device *dev);
static inline int z_impl_ext_power_get(struct device *dev) {
- const struct ext_power_api *api = (const struct ext_power_api *)dev->driver_api;
+ const struct ext_power_api *api = (const struct ext_power_api *)dev->api;
if (api->get == NULL) {
return -ENOTSUP;