net/sfc/base: support new sensors
authorAndrew Jackson <ajackson@solarflare.com>
Thu, 16 Nov 2017 08:04:25 +0000 (08:04 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
Signed-off-by: Andrew Jackson <ajackson@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/mcdi_mon.c

index c5360c3..a083eac 100644 (file)
@@ -157,6 +157,8 @@ static const struct mcdi_sensor_map_s {
        STAT(Px, CONTROLLER_TDIODE_TEMP), /* 0x4e CONTROLLER_TDIODE_TEMP */
        STAT(Px, BOARD_FRONT_TEMP),     /* 0x4f BOARD_FRONT_TEMP */
        STAT(Px, BOARD_BACK_TEMP),      /* 0x50 BOARD_BACK_TEMP */
+       STAT(Px, I1V8),                 /* 0x51 IN_I1V8 */
+       STAT(Px, I2V5),                 /* 0x52 IN_I2V5 */
 };
 
 #define        MCDI_STATIC_SENSOR_ASSERT(_field)                               \