[PATCH V4] net: phy: Add sysfs attribute for PHY c45 identifiers.

From: Jianhui Zhao
Date: Fri Jun 16 2023 - 09:56:08 EST


>+ struct phy_c45_devid_attribute *devattr =
>+ container_of(attr, struct phy_c45_devid_attribute, attr);

>+ struct phy_c45_devid_attribute *devattr =
>+ (struct phy_c45_devid_attribute *)container_of(attr, struct device_attribute, attr);

The two conversions is not same.
One is convert "struct device_attribute" to "struct phy_c45_devid_attribute",
and another one is convert "struct attribute" to "struct phy_c45_devid_attribute".
The second one must cast "struct device_attribute" returned from container_of
to "struct phy_c45_devid_attribute".