mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-27 01:11:31 +00:00
drm/moc: Mark legacy fields in drm_driver as such
No point in documenting these, they only confuse. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170125062657.19270-13-daniel.vetter@ffwll.ch
This commit is contained in:
parent
9b5dd047eb
commit
0683c0ab16
2 changed files with 8 additions and 6 deletions
|
|
@ -679,7 +679,6 @@ static struct drm_driver kms_driver = {
|
||||||
DRIVER_USE_AGP |
|
DRIVER_USE_AGP |
|
||||||
DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | DRIVER_GEM |
|
DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | DRIVER_GEM |
|
||||||
DRIVER_PRIME | DRIVER_RENDER | DRIVER_MODESET,
|
DRIVER_PRIME | DRIVER_RENDER | DRIVER_MODESET,
|
||||||
.dev_priv_size = 0,
|
|
||||||
.load = amdgpu_driver_load_kms,
|
.load = amdgpu_driver_load_kms,
|
||||||
.open = amdgpu_driver_open_kms,
|
.open = amdgpu_driver_open_kms,
|
||||||
.preclose = amdgpu_driver_preclose_kms,
|
.preclose = amdgpu_driver_preclose_kms,
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,6 @@ struct drm_driver {
|
||||||
* Zero on success, non-zero value on failure.
|
* Zero on success, non-zero value on failure.
|
||||||
*/
|
*/
|
||||||
int (*load) (struct drm_device *, unsigned long flags);
|
int (*load) (struct drm_device *, unsigned long flags);
|
||||||
int (*firstopen) (struct drm_device *);
|
|
||||||
int (*open) (struct drm_device *, struct drm_file *);
|
int (*open) (struct drm_device *, struct drm_file *);
|
||||||
void (*preclose) (struct drm_device *, struct drm_file *file_priv);
|
void (*preclose) (struct drm_device *, struct drm_file *file_priv);
|
||||||
void (*postclose) (struct drm_device *, struct drm_file *);
|
void (*postclose) (struct drm_device *, struct drm_file *);
|
||||||
|
|
@ -103,9 +102,6 @@ struct drm_driver {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void (*unload) (struct drm_device *);
|
void (*unload) (struct drm_device *);
|
||||||
int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
|
|
||||||
int (*dma_quiescent) (struct drm_device *);
|
|
||||||
int (*context_dtor) (struct drm_device *dev, int context);
|
|
||||||
int (*set_busid)(struct drm_device *dev, struct drm_master *master);
|
int (*set_busid)(struct drm_device *dev, struct drm_master *master);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -413,13 +409,20 @@ struct drm_driver {
|
||||||
char *date;
|
char *date;
|
||||||
|
|
||||||
u32 driver_features;
|
u32 driver_features;
|
||||||
int dev_priv_size;
|
|
||||||
const struct drm_ioctl_desc *ioctls;
|
const struct drm_ioctl_desc *ioctls;
|
||||||
int num_ioctls;
|
int num_ioctls;
|
||||||
const struct file_operations *fops;
|
const struct file_operations *fops;
|
||||||
|
|
||||||
|
/* Everything below here is for legacy driver, never use! */
|
||||||
|
/* private: */
|
||||||
|
|
||||||
/* List of devices hanging off this driver with stealth attach. */
|
/* List of devices hanging off this driver with stealth attach. */
|
||||||
struct list_head legacy_dev_list;
|
struct list_head legacy_dev_list;
|
||||||
|
int (*firstopen) (struct drm_device *);
|
||||||
|
int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
|
||||||
|
int (*dma_quiescent) (struct drm_device *);
|
||||||
|
int (*context_dtor) (struct drm_device *dev, int context);
|
||||||
|
int dev_priv_size;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern __printf(6, 7)
|
extern __printf(6, 7)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue