Just use a regular 'bool foo', rather than 'bool foo:1'.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
u8 disp_mode;
/* Current output type; true == mono, false == color */
u8 disp_mode;
/* Current output type; true == mono, false == color */
- bool mono:1;
- bool asleep:1;
+ bool mono;
+ bool asleep;
{
struct dcon_priv *dcon = dev_get_drvdata(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,
}
static ssize_t dcon_freeze_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct dcon_priv *dcon = dev_get_drvdata(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,
}
static ssize_t dcon_resumeline_show(struct device *dev,
if (_strtoul(buf, count, &enable_mono))
return -EINVAL;
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);