[Armadeus-commitlog] armadeus branch, master, updated. armadeus-5.2-212-g1bf49e9
Brought to you by:
sszy
|
From: SebR <se...@us...> - 2013-03-26 15:22:23
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 1bf49e9a0ee2a8c5fc2be75ec028db21814c827a (commit)
from 2175806fcc229eb4a1167e20053b629a4a116919 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1bf49e9a0ee2a8c5fc2be75ec028db21814c827a
Author: seb <seb...@ar...>
Date: Tue Mar 26 16:17:04 2013 +0100
[as_devices] fix as_backlight sys access
-----------------------------------------------------------------------
Summary of changes:
target/packages/as_devices/c/as_backlight.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/packages/as_devices/c/as_backlight.c b/target/packages/as_devices/c/as_backlight.c
index 0e3a4fe..70808fb 100644
--- a/target/packages/as_devices/c/as_backlight.c
+++ b/target/packages/as_devices/c/as_backlight.c
@@ -36,7 +36,7 @@
#define MAX_BRIGHTNESS_PATH "max_brightness"
#define BRIGHTNESS_PATH "brightness"
-#define SIZE_OF_BUFF 50
+#define SIZE_OF_BUFF 128
/*------------------------------------------------------------------------------*/
@@ -57,12 +57,12 @@ struct as_backlight_device *as_backlight_open2(char *aBacklightName)
/* open backlight management files */
snprintf(buffer, SIZE_OF_BUFF, "%s/%s/%s", BACKLIGHT_SYS_PATH, aBacklightName, ACTUAL_BRIGHTNESS_PATH);
- if ((dev->fileActualBrightness = open(buffer, O_RDWR)) < 0) {
+ if ((dev->fileActualBrightness = open(buffer, O_RDONLY)) < 0) {
ERROR("Can't open actual brightness file");
return NULL;
}
snprintf(buffer, SIZE_OF_BUFF, "%s/%s/%s", BACKLIGHT_SYS_PATH, aBacklightName, MAX_BRIGHTNESS_PATH);
- if ((dev->fileMaxBrightness = open(buffer, O_RDWR)) < 0) {
+ if ((dev->fileMaxBrightness = open(buffer, O_RDONLY)) < 0) {
ERROR("Can't open max brightness file");
return NULL;
}
hooks/post-receive
--
armadeus
|