Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18635
b: refs/heads/master
c: 5ebdce7
h: refs/heads/master
i:
  18633: 2014209
  18631: f49e564
v: v3
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed Jan 17, 2006
1 parent f3a47b6 commit 9e87c06
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f63776d0dccb6eb5f38beeac3eb9db735f7b5879
refs/heads/master: 5ebdce726baf17eb66c5a1bf402ae6f161a082ed
20 changes: 9 additions & 11 deletions trunk/drivers/video/sbuslib.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ static int fbiogetputcmap(struct file *file, struct fb_info *info,
ret |= put_user(compat_ptr(addr), &p->blue);
if (ret)
return -EFAULT;
return info->fbops->fb_ioctl(file->f_dentry->d_inode, file,
return info->fbops->fb_ioctl(info,
(cmd == FBIOPUTCMAP32) ?
FBIOPUTCMAP_SPARC : FBIOGETCMAP_SPARC,
(unsigned long)p, info);
(unsigned long)p);
}

struct fbcursor32 {
Expand Down Expand Up @@ -260,12 +260,11 @@ static int fbiogscursor(struct file *file, struct fb_info *info,
ret |= put_user(compat_ptr(addr), &p->image);
if (ret)
return -EFAULT;
return info->fbops->fb_ioctl(file->f_dentry->d_inode, file,
FBIOSCURSOR, (unsigned long)p, info);
return info->fbops->fb_ioctl(info, FBIOSCURSOR, (unsigned long)p);
}

long sbusfb_compat_ioctl(struct file *file, unsigned int cmd,
unsigned long arg, struct fb_info *info)
long sbusfb_compat_ioctl(struct fb_info *info, unsigned int cmd,
unsigned long arg)
{
switch (cmd) {
case FBIOGTYPE:
Expand All @@ -278,14 +277,13 @@ long sbusfb_compat_ioctl(struct file *file, unsigned int cmd,
case FBIOSCURPOS:
case FBIOGCURPOS:
case FBIOGCURMAX:
return info->fbops->fb_ioctl(file->f_dentry->d_inode,
file, cmd, arg, info);
return info->fbops->fb_ioctl(info, cmd, arg);
case FBIOPUTCMAP32:
return fbiogetputcmap(file, info, cmd, arg);
return fbiogetputcmap(info, cmd, arg);
case FBIOGETCMAP32:
return fbiogetputcmap(file, info, cmd, arg);
return fbiogetputcmap(info, cmd, arg);
case FBIOSCURSOR32:
return fbiogscursor(file, info, arg);
return fbiogscursor(info, arg);
default:
return -ENOIOCTLCMD;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/video/sbuslib.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extern int sbusfb_mmap_helper(struct sbus_mmap_map *map,
int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg,
struct fb_info *info,
int type, int fb_depth, unsigned long fb_size);
long sbusfb_compat_ioctl(struct file *file, unsigned int cmd,
unsigned long arg, struct fb_info *info);
long sbusfb_compat_ioctl(struct fb_info *info, unsigned int cmd,
unsigned long arg);

#endif /* _SBUSLIB_H */

0 comments on commit 9e87c06

Please sign in to comment.