[PATCH v4] dw_mmc: Add Synopsys DesignWare mmc host driver.

Will Newton will.newton at gmail.com
Tue Feb 8 05:29:06 EST 2011


On Tue, Feb 8, 2011 at 6:38 AM, Jaehoon Chung <jh80.chung at samsung.com> wrote:
> Hi Will..
>
> I need your help for your code..
>
> In dw_mmc.h, exist some function pointer..
>
> int *get_ro(u32 slot_id);
> int *get_cd(u32 slot_id);
> ...
>
> Just only need slot_id??
> If i need the "struct dw_mci", could i append the parameter?

Yes, that should be possible. However I would like to reduce the
number of places the whole struct dw_mci
is passed around if possible, as the whole struct is usually not
needed and it exposes some driver internals.

Which part of struct dw_mci do you need in the callback?



More information about the linux-arm-kernel mailing list