Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271327
b: refs/heads/master
c: 261e767
h: refs/heads/master
i:
  271325: ae16385
  271323: 97059b7
  271319: 3581a6e
  271311: 7bea63c
  271295: ce27f1e
v: v3
  • Loading branch information
Dan Carpenter authored and Florian Tobias Schandinat committed Oct 3, 2011
1 parent 77bab73 commit 31e0726
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 2b7a905dd0d24d14a1099653ba63b7113a82fc54
refs/heads/master: 261e767628bb5971b9032439818237cc8511ea94
8 changes: 4 additions & 4 deletions trunk/drivers/video/smscufx.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ struct ufx_data {
struct delayed_work free_framebuffer_work;
atomic_t usb_active; /* 0 = update virtual buffer, but no usb traffic */
atomic_t lost_pixels; /* 1 = a render op failed. Need screen refresh */
char *edid; /* null until we read edid from hw or get from sysfs */
u8 *edid; /* null until we read edid from hw or get from sysfs */
size_t edid_size;
u32 pseudo_palette[256];
};
Expand Down Expand Up @@ -993,7 +993,7 @@ static int ufx_ops_ioctl(struct fb_info *info, unsigned int cmd,

/* TODO: Update X server to get this from sysfs instead */
if (cmd == UFX_IOCTL_RETURN_EDID) {
char *edid = (char *)arg;
u8 __user *edid = (u8 __user *)arg;
if (copy_to_user(edid, dev->edid, dev->edid_size))
return -EFAULT;
return 0;
Expand Down Expand Up @@ -1428,7 +1428,7 @@ static int ufx_i2c_wait_busy(struct ufx_data *dev)
}

/* reads a 128-byte EDID block from the currently selected port and TAR */
static int ufx_read_edid(struct ufx_data *dev, char *edid, int edid_len)
static int ufx_read_edid(struct ufx_data *dev, u8 *edid, int edid_len)
{
int i, j, status;
u32 *edid_u32 = (u32 *)edid;
Expand Down Expand Up @@ -1491,7 +1491,7 @@ static int ufx_setup_modes(struct ufx_data *dev, struct fb_info *info,
char *default_edid, size_t default_edid_size)
{
const struct fb_videomode *default_vmode = NULL;
char *edid;
u8 *edid;
int i, result = 0, tries = 3;

if (info->dev) /* only use mutex if info has been registered */
Expand Down

0 comments on commit 31e0726

Please sign in to comment.