diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-09-23 14:58:38 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-09-24 02:29:29 -0400 |
commit | 8155cac489eb8cc6fd96b9bdefacdf5a56e6ea32 (patch) | |
tree | 0fb54eb113e8cbac73836b9c48989f0bf42d4f2f /drivers/gpu/drm/nouveau/nouveau_drv.h | |
parent | e829d804d78c57b8e90039079284ac585f72851d (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.h | 5 |
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 | ||
423 | struct nouveau_engine { | 426 | struct 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 | ||
686 | static inline struct drm_nouveau_private * | 687 | static inline struct drm_nouveau_private * |