boards/same70-xplained: fix usage of SAMV71XULT instead of SAME70XPLAINED

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2021-11-27 15:55:35 +02:00 committed by Alan Carvalho de Assis
parent 7ba330dff1
commit 919aeced30

View File

@ -92,17 +92,17 @@ static bool sam_inserted(FAR const struct automount_lower_s *lower);
* Private Data * Private Data
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_SAMV71XULT_HSMCI0_AUTOMOUNT #ifdef CONFIG_SAME70XPLAINED_HSMCI0_AUTOMOUNT
static struct sam_automount_state_s g_hsmci0state; static struct sam_automount_state_s g_hsmci0state;
static const struct sam_automount_config_s g_hsmci0config = static const struct sam_automount_config_s g_hsmci0config =
{ {
.lower = .lower =
{ {
.fstype = CONFIG_SAMV71XULT_HSMCI0_AUTOMOUNT_FSTYPE, .fstype = CONFIG_SAME70XPLAINED_HSMCI0_AUTOMOUNT_FSTYPE,
.blockdev = CONFIG_SAMV71XULT_HSMCI0_AUTOMOUNT_BLKDEV, .blockdev = CONFIG_SAME70XPLAINED_HSMCI0_AUTOMOUNT_BLKDEV,
.mountpoint = CONFIG_SAMV71XULT_HSMCI0_AUTOMOUNT_MOUNTPOINT, .mountpoint = CONFIG_SAME70XPLAINED_HSMCI0_AUTOMOUNT_MOUNTPOINT,
.ddelay = MSEC2TICK(CONFIG_SAMV71XULT_HSMCI0_AUTOMOUNT_DDELAY), .ddelay = MSEC2TICK(CONFIG_SAME70XPLAINED_HSMCI0_AUTOMOUNT_DDELAY),
.udelay = MSEC2TICK(CONFIG_SAMV71XULT_HSMCI0_AUTOMOUNT_UDELAY), .udelay = MSEC2TICK(CONFIG_SAME70XPLAINED_HSMCI0_AUTOMOUNT_UDELAY),
.attach = sam_attach, .attach = sam_attach,
.enable = sam_enable, .enable = sam_enable,
.inserted = sam_inserted .inserted = sam_inserted
@ -256,7 +256,7 @@ void sam_automount_initialize(void)
finfo("Initializing automounter(s)\n"); finfo("Initializing automounter(s)\n");
#ifdef CONFIG_SAMV71XULT_HSMCI0_AUTOMOUNT #ifdef CONFIG_SAME70XPLAINED_HSMCI0_AUTOMOUNT
/* Initialize the HSMCI0 auto-mounter */ /* Initialize the HSMCI0 auto-mounter */
handle = automount_initialize(&g_hsmci0config.lower); handle = automount_initialize(&g_hsmci0config.lower);
@ -298,7 +298,7 @@ void sam_automount_event(int slotno, bool inserted)
FAR const struct sam_automount_config_s *config; FAR const struct sam_automount_config_s *config;
FAR struct sam_automount_state_s *state; FAR struct sam_automount_state_s *state;
#ifdef CONFIG_SAMV71XULT_HSMCI0_AUTOMOUNT #ifdef CONFIG_SAME70XPLAINED_HSMCI0_AUTOMOUNT
/* Is this a change in the HSMCI0 insertion state? */ /* Is this a change in the HSMCI0 insertion state? */
if (slotno == HSMCI0_SLOTNO) if (slotno == HSMCI0_SLOTNO)