Skip to content

Commit 343a5d3

Browse files
mwalledavem330
authored andcommitted
net: phy: mxl-gpy: rename MMD_VEND1 macros to match datasheet
Rename the temperature sensors macros to match the names in the datasheet. Signed-off-by: Michael Walle <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent de62486 commit 343a5d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/phy/mxl-gpy.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
VSPEC1_SGMII_CTRL_ANRS)
7979

8080
/* Temperature sensor */
81-
#define VPSPEC1_TEMP_STA 0x0E
82-
#define VPSPEC1_TEMP_STA_DATA GENMASK(9, 0)
81+
#define VSPEC1_TEMP_STA 0x0E
82+
#define VSPEC1_TEMP_STA_DATA GENMASK(9, 0)
8383

8484
/* WoL */
8585
#define VPSPEC2_WOL_CTL 0x0E06
@@ -140,14 +140,14 @@ static int gpy_hwmon_read(struct device *dev,
140140
struct phy_device *phydev = dev_get_drvdata(dev);
141141
int ret;
142142

143-
ret = phy_read_mmd(phydev, MDIO_MMD_VEND1, VPSPEC1_TEMP_STA);
143+
ret = phy_read_mmd(phydev, MDIO_MMD_VEND1, VSPEC1_TEMP_STA);
144144
if (ret < 0)
145145
return ret;
146146
if (!ret)
147147
return -ENODATA;
148148

149149
*value = polynomial_calc(&poly_N_to_temp,
150-
FIELD_GET(VPSPEC1_TEMP_STA_DATA, ret));
150+
FIELD_GET(VSPEC1_TEMP_STA_DATA, ret));
151151

152152
return 0;
153153
}

0 commit comments

Comments
 (0)