Re: [PATCH v5 2/7] mailbox: arm_mhu: add driver for ARM MHU controller

Jassi Brar
2015-02-05T12:02:39Z

[-- Attachment #1: Type: text/plain, Size: 464 bytes --]

On Feb 5, 2015 5:13 PM, "Arnd Bergmann" <arnd@arndb.de> wrote:
>
> >
> > I know typedef's are frowned upon, but how bad is the following option?
> > typedef void* mbox_data_info
> > int mbox_send_message(struct mbox_chan *chan, mbox_data_info
data);
>
> I don't see how that would help.
>
If it's abuse because the argument is a void*... What if we called it
mbox_data_info? To say platforms are free to pass data as a pointer or a
value :)

Jassi

[-- Attachment #2: Type: text/html, Size: 660 bytes --]