Re: [PATCH] drivers: phy: constify phy_ops structures

2017-01-16 Thread Kishon Vijay Abraham I
On Sunday 08 January 2017 04:05 PM, Bhumika Goyal wrote: > Declare phy_ops structures as const as they are only passed as an > argument to the function devm_phy_create. This argument is of type const > struct phy_ops *, so phy_ops structures having this property can be > declared as const. > Done

[PATCH] drivers: phy: constify phy_ops structures

2017-01-08 Thread Bhumika Goyal
Declare phy_ops structures as const as they are only passed as an argument to the function devm_phy_create. This argument is of type const struct phy_ops *, so phy_ops structures having this property can be declared as const. Done using Coccinelle: @r1 disable optional_qualifier @ identifier i; po