summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/include/nvif/device.h
diff options
context:
space:
mode:
authorKarol Herbst <nouveau@karolherbst.de>2016-02-18 22:10:19 +0300
committerBen Skeggs <bskeggs@redhat.com>2016-03-14 03:13:26 +0300
commit353b9834402356df3e6c15d3a2c87be82e52c0df (patch)
tree04cebdf99cec1f25ef7b64fca978186b23605c76 /drivers/gpu/drm/nouveau/include/nvif/device.h
parentb71c0892631af3dd2aea708529d282a65c683be5 (diff)
downloadlinux-353b9834402356df3e6c15d3a2c87be82e52c0df.tar.xz
drm/nouveau/hwmon: add power consumption
v2: expose only if the sensor reading is valid Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Reviewed-by: Martin Peres <martin.peres@free.fr>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include/nvif/device.h')
-rw-r--r--drivers/gpu/drm/nouveau/include/nvif/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvif/device.h b/drivers/gpu/drm/nouveau/include/nvif/device.h
index e0ed2f4b2f43..bcb981711617 100644
--- a/drivers/gpu/drm/nouveau/include/nvif/device.h
+++ b/drivers/gpu/drm/nouveau/include/nvif/device.h
@@ -62,6 +62,7 @@ u64 nvif_device_time(struct nvif_device *);
#define nvxx_gpio(a) nvxx_device(a)->gpio
#define nvxx_clk(a) nvxx_device(a)->clk
#define nvxx_i2c(a) nvxx_device(a)->i2c
+#define nvxx_iccsense(a) nvxx_device(a)->iccsense
#define nvxx_therm(a) nvxx_device(a)->therm
#define nvxx_volt(a) nvxx_device(a)->volt