Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365647
b: refs/heads/master
c: 6a7aeb1
h: refs/heads/master
i:
  365645: d500834
  365643: 47098cb
  365639: eaca5f8
  365631: 0aeba03
v: v3
  • Loading branch information
Kim, Milo authored and Linus Torvalds committed Apr 30, 2013
1 parent a4472eb commit da08b72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: d1720b57f3b241d83a50802257eb52fb7ec03ddc
refs/heads/master: 6a7aeb1ae8d8b15073f730ad7828c4b53f1402c3
5 changes: 2 additions & 3 deletions trunk/drivers/video/backlight/lp855x_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#define LP8557_EPROM_START 0x10
#define LP8557_EPROM_END 0x1E

#define BUF_SIZE 20
#define DEFAULT_BL_NAME "lcd-backlight"
#define MAX_BRIGHTNESS 255

Expand Down Expand Up @@ -304,7 +303,7 @@ static ssize_t lp855x_get_chip_id(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct lp855x *lp = dev_get_drvdata(dev);
return scnprintf(buf, BUF_SIZE, "%s\n", lp->chipname);
return scnprintf(buf, PAGE_SIZE, "%s\n", lp->chipname);
}

static ssize_t lp855x_get_bl_ctl_mode(struct device *dev,
Expand All @@ -319,7 +318,7 @@ static ssize_t lp855x_get_bl_ctl_mode(struct device *dev,
else if (mode == REGISTER_BASED)
strmode = "register based";

return scnprintf(buf, BUF_SIZE, "%s\n", strmode);
return scnprintf(buf, PAGE_SIZE, "%s\n", strmode);
}

static DEVICE_ATTR(chip_id, S_IRUGO, lp855x_get_chip_id, NULL);
Expand Down

0 comments on commit da08b72

Please sign in to comment.