[PATCH net-next v2 07/10] net: pcs: xpcs: Add Synopsys DW xPCS platform device driver
Serge Semin
fancer.lancer at gmail.com
Thu Jun 6 20:14:53 AEST 2024
Hi Simon
On Wed, Jun 05, 2024 at 06:48:17PM +0100, Simon Horman wrote:
> On Sun, Jun 02, 2024 at 05:36:21PM +0300, Serge Semin wrote:
>
> ...
>
> > diff --git a/drivers/net/pcs/pcs-xpcs-plat.c b/drivers/net/pcs/pcs-xpcs-plat.c
>
> ...
>
> > +const struct dev_pm_ops xpcs_plat_pm_ops = {
> > + SET_RUNTIME_PM_OPS(xpcs_plat_pm_runtime_suspend,
> > + xpcs_plat_pm_runtime_resume,
> > + NULL)
> > +};
>
> nit: xpcs_plat_pm_ops only seems to be used in this file.
> If so it should probably be static.
>
> Flagged by Sparse.
Right. I'll convert it to being static. Thanks.
-Serge(y)
>
> ...
>
> > +static struct platform_driver xpcs_plat_driver = {
> > + .probe = xpcs_plat_probe,
> > + .driver = {
> > + .name = "dwxpcs",
> > + .pm = &xpcs_plat_pm_ops,
> > + .of_match_table = xpcs_of_ids,
> > + },
> > +};
> > +module_platform_driver(xpcs_plat_driver);
>
> ...
More information about the openbmc
mailing list