summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-07-26 09:12:47 +1000
committerBen Skeggs <bskeggs@redhat.com>2012-10-03 13:12:58 +1000
commit51a3d3425663698a79e8a9d01998a8a32ddee13b (patch)
tree631abadec9c864cb46b441bdc46cbb444ccd972d /drivers/gpu/drm/nouveau/nouveau_drv.h
parent84058eb80e0b790c877962e3f4cf49725e23ffce (diff)
drm/nouveau/backlight: remove dependence on nouveau_drv.h
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.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index 5d2da1bd12f2..1228ac45e24c 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -308,9 +308,6 @@ struct drm_nouveau_private {
spinlock_t context_switch_lock;
struct nvbios vbios;
- u8 *mxms;
-
- struct backlight_device *backlight;
};
static inline struct drm_nouveau_private *
@@ -544,4 +541,11 @@ nv_match_device(struct drm_device *dev, unsigned device,
dev->pdev->subsystem_device == sub_device;
}
+static inline struct nv04_display *
+nv04_display(struct drm_device *dev)
+{
+ struct drm_nouveau_private *dev_priv = dev->dev_private;
+ return dev_priv->engine.display.priv;
+}
+
#endif /* __NOUVEAU_DRV_H__ */