/* pcmcia_do_loop_config() is the internal callback for the call from pcmcia_loop_config() to pccard_loop_tuple(). Data is transferred by a struct  */
static int pcmcia_do_loop_config(tuple_t *tuple, cisparse_t *parse, void *priv)
/* pcmcia_do_loop_config() is the internal callback for the call from pcmcia_loop_config() to pccard_loop_tuple(). Data is transferred by a struct  */
static int pcmcia_do_loop_config(tuple_t *tuple, cisparse_t *parse, void *priv)
{
	cistpl_cftable_entry_t *cfg = &parse->cftable_entry;
	struct pcmcia_cfg_mem *cfg_mem = priv;
	cfg_mem->p_dev->conf.ConfigIndex = cfg->index;
	if (cfg->flags & CISTPL_CFTABLE_DEFAULT)
		cfg_mem->dflt = *cfg;
	return cfg_mem->conf_check(cfg_mem->p_dev, cfg, &cfg_mem->dflt,
				   cfg_mem->p_dev->socket->socket.Vcc,
				   cfg_mem->priv_data);
}