Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346397
b: refs/heads/master
c: 424e06e
h: refs/heads/master
i:
  346395: e7f9acf
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Dec 18, 2012
1 parent 4058767 commit 0115a2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 2fe2380e354d3bb634de673c498a262fb0d632ad
refs/heads/master: 424e06e3da2cbf986d7421f98b90fe5cf4b57be5
8 changes: 6 additions & 2 deletions trunk/drivers/video/backlight/lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,16 @@ static ssize_t lcd_show_power(struct device *dev, struct device_attribute *attr,
static ssize_t lcd_store_power(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{
int rc = -ENXIO;
int rc;
struct lcd_device *ld = to_lcd_device(dev);
unsigned long power;

rc = kstrtoul(buf, 0, &power);
if (rc)
return rc;

rc = -ENXIO;

mutex_lock(&ld->ops_lock);
if (ld->ops && ld->ops->set_power) {
pr_debug("set power to %lu\n", power);
Expand Down Expand Up @@ -144,14 +146,16 @@ static ssize_t lcd_show_contrast(struct device *dev,
static ssize_t lcd_store_contrast(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{
int rc = -ENXIO;
int rc;
struct lcd_device *ld = to_lcd_device(dev);
unsigned long contrast;

rc = kstrtoul(buf, 0, &contrast);
if (rc)
return rc;

rc = -ENXIO;

mutex_lock(&ld->ops_lock);
if (ld->ops && ld->ops->set_contrast) {
pr_debug("set contrast to %lu\n", contrast);
Expand Down

0 comments on commit 0115a2a

Please sign in to comment.