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

Rafał Miłecki
2013-03-06T11:10:14Z

2013/3/6 Rafał Miłecki <zajec5@gmail.com>:
> 2013/3/6 Artem Bityutskiy <dedekind1@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ł