aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drm_stub.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_stub.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_stub.c')
-rw-r--r--drivers/char/drm/drm_stub.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/char/drm/drm_stub.c b/drivers/char/drm/drm_stub.c
index 331163001963..9138b49e676e 100644
--- a/drivers/char/drm/drm_stub.c
+++ b/drivers/char/drm/drm_stub.c
@@ -49,11 +49,11 @@ MODULE_PARM_DESC(debug, "Enable debug output");
49module_param_named(cards_limit, drm_cards_limit, int, 0444); 49module_param_named(cards_limit, drm_cards_limit, int, 0444);
50module_param_named(debug, drm_debug, int, 0600); 50module_param_named(debug, drm_debug, int, 0600);
51 51
52drm_head_t **drm_heads; 52struct drm_head **drm_heads;
53struct class *drm_class; 53struct class *drm_class;
54struct proc_dir_entry *drm_proc_root; 54struct proc_dir_entry *drm_proc_root;
55 55
56static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev, 56static int drm_fill_in_dev(struct drm_device * dev, struct pci_dev *pdev,
57 const struct pci_device_id *ent, 57 const struct pci_device_id *ent,
58 struct drm_driver *driver) 58 struct drm_driver *driver)
59{ 59{
@@ -143,9 +143,9 @@ static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
143 * create the proc init entry via proc_init(). This routines assigns 143 * create the proc init entry via proc_init(). This routines assigns
144 * minor numbers to secondary heads of multi-headed cards 144 * minor numbers to secondary heads of multi-headed cards
145 */ 145 */
146static int drm_get_head(drm_device_t * dev, drm_head_t * head) 146static int drm_get_head(struct drm_device * dev, struct drm_head * head)
147{ 147{
148 drm_head_t **heads = drm_heads; 148 struct drm_head **heads = drm_heads;
149 int ret; 149 int ret;
150 int minor; 150 int minor;
151 151
@@ -154,7 +154,7 @@ static int drm_get_head(drm_device_t * dev, drm_head_t * head)
154 for (minor = 0; minor < drm_cards_limit; minor++, heads++) { 154 for (minor = 0; minor < drm_cards_limit; minor++, heads++) {
155 if (!*heads) { 155 if (!*heads) {
156 156
157 *head = (drm_head_t) { 157 *head = (struct drm_head) {
158 .dev = dev,.device = 158 .dev = dev,.device =
159 MKDEV(DRM_MAJOR, minor),.minor = minor,}; 159 MKDEV(DRM_MAJOR, minor),.minor = minor,};
160 160
@@ -184,7 +184,7 @@ static int drm_get_head(drm_device_t * dev, drm_head_t * head)
184 err_g2: 184 err_g2:
185 drm_proc_cleanup(minor, drm_proc_root, head->dev_root); 185 drm_proc_cleanup(minor, drm_proc_root, head->dev_root);
186 err_g1: 186 err_g1:
187 *head = (drm_head_t) { 187 *head = (struct drm_head) {
188 .dev = NULL}; 188 .dev = NULL};
189 return ret; 189 return ret;
190} 190}
@@ -203,7 +203,7 @@ static int drm_get_head(drm_device_t * dev, drm_head_t * head)
203int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, 203int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent,
204 struct drm_driver *driver) 204 struct drm_driver *driver)
205{ 205{
206 drm_device_t *dev; 206 struct drm_device *dev;
207 int ret; 207 int ret;
208 208
209 DRM_DEBUG("\n"); 209 DRM_DEBUG("\n");
@@ -246,7 +246,7 @@ err_g1:
246 * "drm" data, otherwise unregisters the "drm" data, frees the dev list and 246 * "drm" data, otherwise unregisters the "drm" data, frees the dev list and
247 * unregisters the character device. 247 * unregisters the character device.
248 */ 248 */
249int drm_put_dev(drm_device_t * dev) 249int drm_put_dev(struct drm_device * dev)
250{ 250{
251 DRM_DEBUG("release primary %s\n", dev->driver->pci_driver.name); 251 DRM_DEBUG("release primary %s\n", dev->driver->pci_driver.name);
252 252
@@ -274,7 +274,7 @@ int drm_put_dev(drm_device_t * dev)
274 * last minor released. 274 * last minor released.
275 * 275 *
276 */ 276 */
277int drm_put_head(drm_head_t * head) 277int drm_put_head(struct drm_head * head)
278{ 278{
279 int minor = head->minor; 279 int minor = head->minor;
280 280
@@ -283,7 +283,7 @@ int drm_put_head(drm_head_t * head)
283 drm_proc_cleanup(minor, drm_proc_root, head->dev_root); 283 drm_proc_cleanup(minor, drm_proc_root, head->dev_root);
284 drm_sysfs_device_remove(head->dev_class); 284 drm_sysfs_device_remove(head->dev_class);
285 285
286 *head = (drm_head_t) {.dev = NULL}; 286 *head = (struct drm_head) {.dev = NULL};
287 287
288 drm_heads[minor] = NULL; 288 drm_heads[minor] = NULL;
289 289