Skip to content

Commit 06eb9cf

Browse files
committed
Change order of includes to avoid conflict with nrfx/npmx compiler_abstraction.h
Signed-off-by: Audun Korneliussen <audun.korneliussen@nordicsemi.no>
1 parent c529ec1 commit 06eb9cf

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

drivers/npmx/npmx_driver.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <npmx_core.h>
8-
#include <npmx_driver.h>
97

108
#include <zephyr/types.h>
119
#include <zephyr/drivers/gpio.h>
1210
#include <zephyr/drivers/i2c.h>
1311
#include <zephyr/sys/byteorder.h>
1412

13+
#include <npmx_core.h>
14+
#include <npmx_driver.h>
15+
1516
#include <zephyr/logging/log.h>
1617
LOG_MODULE_REGISTER(NPMX, CONFIG_NPMX_LOG_LEVEL);
1718

drivers/npmx/shell/ldsw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include "npmx_common.h"
87
#include "shell_common.h"
8+
#include "npmx_common.h"
99
#include <npmx_driver.h>
1010

1111
/** @brief Load switch GPIO configuration parameter. */

drivers/npmx/shell/shell_common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
#ifndef ZEPHYR_DRIVERS_SHELL_COMMON_H__
88
#define ZEPHYR_DRIVERS_SHELL_COMMON_H__
99

10+
#include <zephyr/shell/shell.h>
11+
1012
#include <npmx.h>
1113
#include <npmx_adc.h>
1214
#include <npmx_charger.h>
13-
#include <zephyr/shell/shell.h>
1415

1516
/** @brief Max supported number of shell arguments. */
1617
#define SHELL_ARG_MAX_COUNT 3U

0 commit comments

Comments
 (0)