net: phy: tja11xx: Switch to HWMON_CHANNEL_INFO()
authorMarek Vasut <marex@denx.de>
Tue, 28 May 2019 18:15:41 +0000 (20:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 05:02:18 +0000 (22:02 -0700)
commit517f4c49aafce3d2c3ac54ae0bb36f2c76e57fe8
tree455edda963c9603b8d921944a48db3b193920478
parent02caceded0691a31a21b62011da8dae0d3aec85b
net: phy: tja11xx: Switch to HWMON_CHANNEL_INFO()

The HWMON_CHANNEL_INFO macro simplifies the code, reduces the likelihood
of errors, and makes the code easier to read.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: linux-hwmon@vger.kernel.org
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/nxp-tja11xx.c