sd: Changed Init Header Structure

In sd subsystem, made one header for all the init functions
instead of having a bunch of header files with one function.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2022-08-30 10:09:13 -05:00 committed by Carles Cufí
commit 9fe18e05b4
3 changed files with 6 additions and 23 deletions

View file

@ -13,9 +13,7 @@
#include <zephyr/sys/__assert.h>
#include "sd_utils.h"
#include "sdmmc_priv.h"
#include "sdio_priv.h"
#include "sd_init.h"
LOG_MODULE_REGISTER(sd, CONFIG_SD_LOG_LEVEL);

View file

@ -5,13 +5,14 @@
*/
#ifndef ZEPHYR_SUBSYS_SD_SDMMC_PRIV_H_
#define ZEPHYR_SUBSYS_SD_SDMMC_PRIV_H_
#ifndef ZEPHYR_SUBSYS_SD_INIT_PRIV_H_
#define ZEPHYR_SUBSYS_SD_INIT_PRIV_H_
#include <zephyr/kernel.h>
#include <zephyr/sd/sd.h>
int sdio_card_init(struct sd_card *card);
int sdmmc_card_init(struct sd_card *card);
#endif /* ZEPHYR_SUBSYS_SD_SDMMC_PRIV_H_ */
#endif /* ZEPHYR_SUBSYS_SD_INIT_PRIV_H_ */

View file

@ -1,16 +0,0 @@
/*
* Copyright 2022 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_SUBSYS_SD_SDIO_PRIV_H_
#define ZEPHYR_SUBSYS_SD_SDIO_PRIV_H_
#include <zephyr/zephyr.h>
#include <zephyr/sd/sd.h>
int sdio_card_init(struct sd_card *card);
#endif /* ZEPHYR_SUBSYS_SD_SDIO_PRIV_H_ */