aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-09-23 14:58:38 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-09-24 02:29:29 -0400
commit8155cac489eb8cc6fd96b9bdefacdf5a56e6ea32 (patch)
tree0fb54eb113e8cbac73836b9c48989f0bf42d4f2f /drivers/gpu/drm/nouveau/nouveau_drv.h
parente829d804d78c57b8e90039079284ac585f72851d (diff)
drm/nouveau: Refactor nouveau_temp_get() into engine pointers.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index 3fc5596df360..799cd149745d 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -411,6 +411,8 @@ struct nouveau_pm_engine {
411 struct nouveau_pm_level boot; 411 struct nouveau_pm_level boot;
412 struct nouveau_pm_level *cur; 412 struct nouveau_pm_level *cur;
413 413
414 struct device *hwmon;
415
414 int (*clock_get)(struct drm_device *, u32 id); 416 int (*clock_get)(struct drm_device *, u32 id);
415 void *(*clock_pre)(struct drm_device *, u32 id, int khz); 417 void *(*clock_pre)(struct drm_device *, u32 id, int khz);
416 void (*clock_set)(struct drm_device *, void *); 418 void (*clock_set)(struct drm_device *, void *);
@@ -418,6 +420,7 @@ struct nouveau_pm_engine {
418 int (*voltage_set)(struct drm_device *, int voltage); 420 int (*voltage_set)(struct drm_device *, int voltage);
419 int (*fanspeed_get)(struct drm_device *); 421 int (*fanspeed_get)(struct drm_device *);
420 int (*fanspeed_set)(struct drm_device *, int fanspeed); 422 int (*fanspeed_set)(struct drm_device *, int fanspeed);
423 int (*temp_get)(struct drm_device *);
421}; 424};
422 425
423struct nouveau_engine { 426struct nouveau_engine {
@@ -679,8 +682,6 @@ struct drm_nouveau_private {
679 682
680 struct nouveau_fbdev *nfbdev; 683 struct nouveau_fbdev *nfbdev;
681 struct apertures_struct *apertures; 684 struct apertures_struct *apertures;
682
683 struct device *int_hwmon_dev;
684}; 685};
685 686
686static inline struct drm_nouveau_private * 687static inline struct drm_nouveau_private *