Re: [PATCH v2 10/22] mmc: tmio: support IP-builtin card detection logic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Another possibility would select this in _probe().
> We would need to evaluate mmc_can_gpio_cd() only once when probing.

I like this, too.

Maybe like this to be more obvious:

	if (mmc_can_gpio_cd(mmc))
		 _host->ops.get_cd = mmc_gpio_get_cd;
	else
		 _host->ops.get_cd = tmio...

?

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux