Skip to content
Permalink
Browse files

cleanup: include/: move power.h to power/power.h

move power.h to power/power.h and
create a shim for backward-compatibility.

No functional changes to the headers.
A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES.

Related to #16539

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information...
nashif committed Jun 25, 2019
1 parent f641d09 commit 190e368275496f682102ac18d281a3cc880222ac
@@ -10,7 +10,7 @@
#include <init.h>
#include <drivers/interrupt_controller/ioapic.h>
#include <counter.h>
#include <power.h>
#include <power/power.h>
#include <soc.h>
#include <misc/util.h>

@@ -11,7 +11,7 @@
#include <counter.h>
#include <init.h>
#include <kernel.h>
#include <power.h>
#include <power/power.h>
#include <soc.h>
#include <misc/util.h>

@@ -27,7 +27,7 @@
#endif

#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
#include <power.h>
#include <power/power.h>
#endif

/*
@@ -18,7 +18,7 @@
#include "qm_isr.h"
#include "clk.h"
#include "soc.h"
#include <power.h>
#include <power/power.h>

struct gpio_qmsi_config {
qm_gpio_t gpio;
@@ -9,7 +9,7 @@
#include <device.h>
#include <i2c.h>
#include <drivers/interrupt_controller/ioapic.h>
#include <power.h>
#include <power/power.h>

#include "qm_i2c.h"
#include "qm_isr.h"
@@ -23,7 +23,7 @@
extern void *_VectorTable;

#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
#include <power.h>
#include <power/power.h>
#include <kernel_structs.h>
#include <v2/irq.h>

@@ -70,7 +70,7 @@
#define SUSPEND_BITS_REQD (ROUND_UP((CONFIG_IOAPIC_NUM_RTES * BITS_PER_IRQ), 32))

#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
#include <power.h>
#include <power/power.h>
u32_t ioapic_suspend_buf[SUSPEND_BITS_REQD / 32] = {0};
static u32_t ioapic_device_power_state = DEVICE_PM_ACTIVE_STATE;
#endif
@@ -60,7 +60,7 @@
#define LOPIC_SSPND_BITS_PER_IRQ 1 /* Just the one for enable disable*/
#define LOPIC_SUSPEND_BITS_REQD (ROUND_UP((LOAPIC_IRQ_COUNT * LOPIC_SSPND_BITS_PER_IRQ), 32))
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
#include <power.h>
#include <power/power.h>
u32_t loapic_suspend_buf[LOPIC_SUSPEND_BITS_REQD / 32] = {0};
static u32_t loapic_device_power_state = DEVICE_PM_ACTIVE_STATE;
#endif
@@ -10,7 +10,7 @@
#include <device.h>
#include <kernel.h>
#include <init.h>
#include <power.h>
#include <power/power.h>
#include <misc/util.h>

#include "qm_pwm.h"
@@ -13,7 +13,7 @@ LOG_MODULE_REGISTER(rtc_mcux);
#include <init.h>
#include <kernel.h>
#include <rtc.h>
#include <power.h>
#include <power/power.h>
#include <soc.h>
#include <misc/util.h>
#include <fsl_rtc.h>
@@ -10,7 +10,7 @@
#include <drivers/interrupt_controller/ioapic.h>
#endif
#include <uart.h>
#include <power.h>
#include <power/power.h>

#include "qm_uart.h"
#include "qm_isr.h"
@@ -21,7 +21,7 @@ LOG_MODULE_REGISTER(spi_intel);
#include <init.h>

#include <sys_io.h>
#include <power.h>
#include <power/power.h>

#include <spi.h>
#include "spi_intel.h"
@@ -62,7 +62,7 @@
#include <sys_clock.h>
#include <drivers/timer/system_timer.h>
#include <arch/x86/irq_controller.h>
#include <power.h>
#include <power/power.h>
#include <device.h>
#include <kernel_structs.h>

@@ -9,7 +9,7 @@
#include <kernel.h>
#include <watchdog.h>
#include <drivers/interrupt_controller/ioapic.h>
#include <power.h>
#include <power/power.h>
#include <soc.h>

#include "clk.h"

0 comments on commit 190e368

Please sign in to comment.
You can’t perform that action at this time.