all: Fix "#if IS_ENABLED(CONFIG_FOO)" occurrences
Clean up occurrences of "#if IS_ENABLED(CONFIG_FOO)" an replace with classical "#if defined(CONFIG_FOO)". Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
ea33f2fce4
commit
66d4c64966
67 changed files with 128 additions and 128 deletions
|
@ -11,7 +11,7 @@
|
|||
#include <soc.h>
|
||||
#include <zephyr/drivers/ipm.h>
|
||||
#include <zephyr/irq.h>
|
||||
#if IS_ENABLED(CONFIG_IPM_IMX_REV2)
|
||||
#if defined(CONFIG_IPM_IMX_REV2)
|
||||
#define DT_DRV_COMPAT nxp_imx_mu_rev2
|
||||
#include "fsl_mu.h"
|
||||
#else
|
||||
|
@ -37,7 +37,7 @@ struct imx_mu_data {
|
|||
void *user_data;
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_IPM_IMX_REV2)
|
||||
#if defined(CONFIG_IPM_IMX_REV2)
|
||||
/*!
|
||||
* @brief Check RX full status.
|
||||
*
|
||||
|
@ -126,7 +126,7 @@ static void imx_mu_isr(const struct device *dev)
|
|||
}
|
||||
if (all_registers_full) {
|
||||
for (i = 0; i < IMX_IPM_DATA_REGS; i++) {
|
||||
#if IS_ENABLED(CONFIG_IPM_IMX_REV2)
|
||||
#if defined(CONFIG_IPM_IMX_REV2)
|
||||
data32[i] = MU_ReceiveMsg(base,
|
||||
(id * IMX_IPM_DATA_REGS) + i);
|
||||
#else
|
||||
|
@ -181,7 +181,7 @@ static int imx_mu_ipm_send(const struct device *dev, int wait, uint32_t id,
|
|||
/* Actual message is passing using 32 bits registers */
|
||||
memcpy(data32, data, size);
|
||||
|
||||
#if IS_ENABLED(CONFIG_IPM_IMX_REV2)
|
||||
#if defined(CONFIG_IPM_IMX_REV2)
|
||||
if (wait) {
|
||||
for (i = 0; i < IMX_IPM_DATA_REGS; i++) {
|
||||
MU_SendMsgNonBlocking(base, id * IMX_IPM_DATA_REGS + i,
|
||||
|
@ -248,7 +248,7 @@ static int imx_mu_ipm_set_enabled(const struct device *dev, int enable)
|
|||
{
|
||||
const struct imx_mu_config *config = dev->config;
|
||||
MU_Type *base = MU(config);
|
||||
#if IS_ENABLED(CONFIG_IPM_IMX_REV2)
|
||||
#if defined(CONFIG_IPM_IMX_REV2)
|
||||
#if CONFIG_IPM_IMX_MAX_DATA_SIZE_4
|
||||
if (enable) {
|
||||
MU_EnableInterrupts(base, kMU_Rx0FullInterruptEnable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue