[PATCH V2 1/3] mtd: bcm47xxsflash: keep a reference to the BCMA

Rafał Miłecki zajec5 at gmail.com
Wed Mar 6 06:10:12 EST 2013


2013/3/6 Rafał Miłecki <zajec5 at gmail.com>:
> 2013/3/6 Artem Bityutskiy <dedekind1 at gmail.com>:
>> On Wed, 2013-03-06 at 12:01 +0100, Rafał Miłecki wrote:
>>> struct bcma_drv_cc;
>>> +
>>>  struct bcm47xxsflash {
>>> +     union {
>>> +             struct bcma_drv_cc *bcma_cc;
>>> +     };
>>
>> Why union?
>
> It's about adding support for different buses in the future (ssb) I
> was describing in the other patch.

Obvious for me, but just in case:

union {
	struct bcma_drv_cc *bcma_cc;
	struct ssb_chipcommon *ssb_cc;
};

-- 
Rafał



More information about the linux-mtd mailing list