]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: factorize temperature access
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 9 May 2016 17:22:42 +0000 (13:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2016 18:26:09 +0000 (14:26 -0400)
commit00a3b3df3b81a088ecbd6a6ea7141435f54b7d9d
treeb4e2a9ba2533843dc3fa06fac45d057100b9e82e
parent0ddc5efb67723ab4d8f280f1b3d599234f97026e
net: dsa: mv88e6xxx: factorize temperature access

Add MV88E6XXX_FLAG_TEMP and MV88E6XXX_FLAG_TEMP_LIMIT flags to describe
switch models featuring a temperature access. Use them to centralize the
access to the temperature feature.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6123.c
drivers/net/dsa/mv88e6131.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h