diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-07-26 01:12:47 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-03 05:12:58 +0200 |
commit | 51a3d3425663698a79e8a9d01998a8a32ddee13b (patch) | |
tree | 631abadec9c864cb46b441bdc46cbb444ccd972d /drivers/gpu/drm/nouveau/nouveau_drv.h | |
parent | drm/nouveau: flatten nv{Read,Write}{MC,VIDEO,FB,EXTDEV} (diff) | |
download | linux-51a3d3425663698a79e8a9d01998a8a32ddee13b.tar.xz linux-51a3d3425663698a79e8a9d01998a8a32ddee13b.zip |
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.h | 10 |
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__ */ |