On Tuesday 09 September 2014 10:00:15 Peter Griffin wrote:
> This is the generic phy driver for the picoPHY ports used by the
> USB2 and USB3 Host controllers when controlling usb2/1.1 devices. It
> is found on STiH407 SoC family from STMicroelectronics.
> 
> Signed-off-by: Giuseppe Cavallaro <[email protected]>
> Signed-off-by: Peter Griffin <[email protected]>

Looks good overall, just one question:

> +
> +     match = of_match_device(stih407_usb2_picophy_of_match, dev);
> +     if (!match)
> +             return -ENODEV;
....
> +
> +     phy = devm_phy_create(dev, NULL, match->data, NULL);
> +     if (IS_ERR(phy)) {
> +             dev_err(dev, "failed to create Display Port PHY\n");
> +             return PTR_ERR(phy);
> +     }
> +

There is only one entry in the match table, so it always points to
stih407_usb2_picophy_data. Do you have plans to add another set of
operations soon?
If not, just remove the .data pointer and hardcode the operations
in the devm_phy_create call.

        Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to