drm/nouveau/backlight: remove dependence on nouveau_drv.h

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs
2012-07-26 09:12:47 +10:00
parent 84058eb80e
commit 51a3d34256
6 changed files with 60 additions and 59 deletions

View File

@@ -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__ */