diff options
author | Dave Airlie <airlied@linux.ie> | 2007-07-11 01:27:12 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-11 01:27:12 -0400 |
commit | c60ce623bd16137627009d05e311d877729f2ad6 (patch) | |
tree | 4d06337a217ccc6c21f8ad96c3b342a1e9452057 /drivers/char/drm/drm_auth.c | |
parent | c6c656b4b6ddfc964f1a43394bf86bc76c5e8119 (diff) |
drm: remove a bunch of typedefs on the userspace interface
This moves a bunch of typedefs into a !defined __KERNEL__ to keep userspace
API compatiblity, it changes all internal usages to structs/enum/unions.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_auth.c')
-rw-r--r-- | drivers/char/drm/drm_auth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/drm/drm_auth.c b/drivers/char/drm/drm_auth.c index c7b19d35bcd..16e6f0e93b2 100644 --- a/drivers/char/drm/drm_auth.c +++ b/drivers/char/drm/drm_auth.c | |||
@@ -144,7 +144,7 @@ int drm_getmagic(struct inode *inode, struct file *filp, | |||
144 | static DEFINE_SPINLOCK(lock); | 144 | static DEFINE_SPINLOCK(lock); |
145 | drm_file_t *priv = filp->private_data; | 145 | drm_file_t *priv = filp->private_data; |
146 | drm_device_t *dev = priv->head->dev; | 146 | drm_device_t *dev = priv->head->dev; |
147 | drm_auth_t auth; | 147 | struct drm_auth auth; |
148 | 148 | ||
149 | /* Find unique magic */ | 149 | /* Find unique magic */ |
150 | if (priv->magic) { | 150 | if (priv->magic) { |
@@ -162,7 +162,7 @@ int drm_getmagic(struct inode *inode, struct file *filp, | |||
162 | } | 162 | } |
163 | 163 | ||
164 | DRM_DEBUG("%u\n", auth.magic); | 164 | DRM_DEBUG("%u\n", auth.magic); |
165 | if (copy_to_user((drm_auth_t __user *) arg, &auth, sizeof(auth))) | 165 | if (copy_to_user((struct drm_auth __user *) arg, &auth, sizeof(auth))) |
166 | return -EFAULT; | 166 | return -EFAULT; |
167 | return 0; | 167 | return 0; |
168 | } | 168 | } |
@@ -183,10 +183,10 @@ int drm_authmagic(struct inode *inode, struct file *filp, | |||
183 | { | 183 | { |
184 | drm_file_t *priv = filp->private_data; | 184 | drm_file_t *priv = filp->private_data; |
185 | drm_device_t *dev = priv->head->dev; | 185 | drm_device_t *dev = priv->head->dev; |
186 | drm_auth_t auth; | 186 | struct drm_auth auth; |
187 | drm_file_t *file; | 187 | drm_file_t *file; |
188 | 188 | ||
189 | if (copy_from_user(&auth, (drm_auth_t __user *) arg, sizeof(auth))) | 189 | if (copy_from_user(&auth, (struct drm_auth __user *) arg, sizeof(auth))) |
190 | return -EFAULT; | 190 | return -EFAULT; |
191 | DRM_DEBUG("%u\n", auth.magic); | 191 | DRM_DEBUG("%u\n", auth.magic); |
192 | if ((file = drm_find_file(dev, auth.magic))) { | 192 | if ((file = drm_find_file(dev, auth.magic))) { |