aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drm_sysfs.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-07-11 01:53:27 -0400
committerDave Airlie <airlied@linux.ie>2007-07-11 01:53:27 -0400
commit84b1fd103dbbe01b5905db1444d3fc8afa9a7207 (patch)
tree2088f4c8e68553e2d4f5d55fa7a714eb3fa09f9e /drivers/char/drm/drm_sysfs.c
parentc60ce623bd16137627009d05e311d877729f2ad6 (diff)
drm: remove drm_file_t, drm_device_t and drm_head_t typedefs
some drivers still todo. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_sysfs.c')
-rw-r--r--drivers/char/drm/drm_sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/drm/drm_sysfs.c b/drivers/char/drm/drm_sysfs.c
index cc8e2ebe128c..cf4349b00b07 100644
--- a/drivers/char/drm/drm_sysfs.c
+++ b/drivers/char/drm/drm_sysfs.c
@@ -80,7 +80,7 @@ void drm_sysfs_destroy(struct class *class)
80 80
81static ssize_t show_dri(struct class_device *class_device, char *buf) 81static ssize_t show_dri(struct class_device *class_device, char *buf)
82{ 82{
83 drm_device_t * dev = ((drm_head_t *)class_get_devdata(class_device))->dev; 83 struct drm_device * dev = ((struct drm_head *)class_get_devdata(class_device))->dev;
84 if (dev->driver->dri_library_name) 84 if (dev->driver->dri_library_name)
85 return dev->driver->dri_library_name(dev, buf); 85 return dev->driver->dri_library_name(dev, buf);
86 return snprintf(buf, PAGE_SIZE, "%s\n", dev->driver->pci_driver.name); 86 return snprintf(buf, PAGE_SIZE, "%s\n", dev->driver->pci_driver.name);
@@ -104,7 +104,7 @@ static struct class_device_attribute class_device_attrs[] = {
104 * Note: the struct class passed to this function must have previously been 104 * Note: the struct class passed to this function must have previously been
105 * created with a call to drm_sysfs_create(). 105 * created with a call to drm_sysfs_create().
106 */ 106 */
107struct class_device *drm_sysfs_device_add(struct class *cs, drm_head_t *head) 107struct class_device *drm_sysfs_device_add(struct class *cs, struct drm_head *head)
108{ 108{
109 struct class_device *class_dev; 109 struct class_device *class_dev;
110 int i, j, err; 110 int i, j, err;