Re: [PATCH 10/24] thunderbolt: Read vendor and device name from DROM

From: Mika Westerberg
Date: Fri May 19 2017 - 04:24:51 EST


On Thu, May 18, 2017 at 10:19:11PM +0300, Andy Shevchenko wrote:
> On Thu, May 18, 2017 at 5:39 PM, Mika Westerberg
> <mika.westerberg@xxxxxxxxxxxxxxx> wrote:
> > The device DROM contains name of the vendor and device among other
> > things. Extract this information and expose it to the userspace via two
> > new attributes.
>
> One nit below.
>
> > + switch (header->type) {
> > + case TB_DROM_ENTRY_PORT:
> > + break;
> > + case TB_DROM_ENTRY_GENERIC:
>
> > + tb_drom_parse_generic_entry(sw,
> > + (struct tb_drom_entry_generic *)header);
>
> Can it be one line?

It does not fit into 80 char limit.

> Is fall through intended?

Yes.

> > + default:
> > return 0;
> > + }
>
> --
> With Best Regards,
> Andy Shevchenko