drm/nouveau/backlight: remove dependence on nouveau_drv.h
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
@@ -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__ */
|
||||
|
Reference in New Issue
Block a user