[firefly] [PATCH v2] staging: dgnc: Fix checkpatch warnings

Daniel Baluta daniel.baluta at gmail.com
Sun Sep 14 21:29:38 EEST 2014


On Sun, Sep 14, 2014 at 9:28 PM, Roberta Dobrescu
<roberta.dobrescu at gmail.com> wrote:
> Thank you for the clarification about dev_info vs. dev_dbg.
>
> struct tty_struct has a member struct device *dev.
> If I use  dev_dbg(&tty->dev, .....), I`ll get the following warning:
> note: expected ‘const struct device *’ but argument is of type ‘struct
> device **’.
>
> Shoudn`t I use dev_dbg(tty->dev, .....)?

OK. You're right. I misread the definition.

thanks,
Daniel.

[1] http://lxr.free-electrons.com/source/include/linux/tty.h#L237


More information about the firefly mailing list