Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304445
b: refs/heads/master
c: c256268
h: refs/heads/master
i:
  304443: 7d677da
v: v3
  • Loading branch information
Jesper Juhl authored and Greg Kroah-Hartman committed Apr 24, 2012
1 parent cea2b72 commit 45b3055
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: 5d2130862b1fbea27fb21b4d4be62f787f5d2898
refs/heads/master: c25626871c082432ae265594d4b336ccbeec4120
8 changes: 4 additions & 4 deletions trunk/drivers/staging/olpc_dcon/olpc_dcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static int dcon_bus_stabilize(struct dcon_priv *dcon, int is_powered_down)
power_up:
if (is_powered_down) {
x = 1;
x = olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0);
x = olpc_ec_cmd(0x26, (unsigned char *)&x, 1, NULL, 0);
if (x) {
printk(KERN_WARNING "olpc-dcon: unable to force dcon to power up: %d!\n",
x);
Expand All @@ -153,7 +153,7 @@ static int dcon_bus_stabilize(struct dcon_priv *dcon, int is_powered_down)
printk(KERN_ERR "olpc-dcon: unable to stabilize dcon's smbus, reasserting power and praying.\n");
BUG_ON(olpc_board_at_least(olpc_board(0xc2)));
x = 0;
olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0);
olpc_ec_cmd(0x26, (unsigned char *)&x, 1, NULL, 0);
msleep(100);
is_powered_down = 1;
goto power_up; /* argh, stupid hardware.. */
Expand Down Expand Up @@ -219,7 +219,7 @@ static void dcon_sleep(struct dcon_priv *dcon, bool sleep)

if (sleep) {
x = 0;
x = olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0);
x = olpc_ec_cmd(0x26, (unsigned char *)&x, 1, NULL, 0);
if (x)
printk(KERN_WARNING "olpc-dcon: unable to force dcon to power down: %d!\n",
x);
Expand Down Expand Up @@ -598,7 +598,7 @@ static int dcon_fb_notifier(struct notifier_block *self,
struct fb_event *evdata = data;
struct dcon_priv *dcon = container_of(self, struct dcon_priv,
fbevent_nb);
int *blank = (int *) evdata->data;
int *blank = (int *)evdata->data;
if (((event != FB_EVENT_BLANK) && (event != FB_EVENT_CONBLANK)) ||
dcon->ignore_fb_events)
return 0;
Expand Down

0 comments on commit 45b3055

Please sign in to comment.