Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235961
b: refs/heads/master
c: 9ed6242
h: refs/heads/master
i:
  235959: 63ab944
v: v3
  • Loading branch information
Andres Salomon authored and Greg Kroah-Hartman committed Feb 18, 2011
1 parent 8ee0a0f commit 39657ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 6680d2cab316a0c0e4cea0727e6d63426a77bb12
refs/heads/master: 9ed62423033d167765a2c6385064acbeeadb2b14
10 changes: 5 additions & 5 deletions trunk/drivers/staging/olpc_dcon/olpc_dcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ struct dcon_priv {
u8 disp_mode;

/* Current output type; true == mono, false == color */
bool mono:1;
bool asleep:1;
bool mono;
bool asleep;
};

/* I2C structures */
Expand Down Expand Up @@ -516,7 +516,7 @@ static ssize_t dcon_sleep_show(struct device *dev,
{

struct dcon_priv *dcon = dev_get_drvdata(dev);
return sprintf(buf, "%d\n", dcon->asleep ? 1 : 0);
return sprintf(buf, "%d\n", dcon->asleep);
}

static ssize_t dcon_freeze_show(struct device *dev,
Expand All @@ -529,7 +529,7 @@ static ssize_t dcon_mono_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct dcon_priv *dcon = dev_get_drvdata(dev);
return sprintf(buf, "%d\n", dcon->mono ? 1 : 0);
return sprintf(buf, "%d\n", dcon->mono);
}

static ssize_t dcon_resumeline_show(struct device *dev,
Expand Down Expand Up @@ -564,7 +564,7 @@ static ssize_t dcon_mono_store(struct device *dev,
if (_strtoul(buf, count, &enable_mono))
return -EINVAL;

dcon_set_mono_mode(dev_get_drvdata(dev), enable_mono ? 1 : 0);
dcon_set_mono_mode(dev_get_drvdata(dev), enable_mono ? true : false);
rc = count;

return rc;
Expand Down

0 comments on commit 39657ce

Please sign in to comment.