Apply Tizen coding rule.
Change-Id: I2d535f4973a5c573e2c3e96e5a7a631f74ac5365
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
#include "device_manager_TRM.h"
#define DEVMGR_LOG
-#if defined (DEVMGR_LOG)
+#if defined(DEVMGR_LOG)
#define LOG_TAG "DEVICE_PLUGIN"
#include <dlog/dlog.h>
#define devmgr_log(fmt, args...) SLOGI(fmt, ##args)
snprintf(addr.sun_path, UNIX_PATH_MAX, "%s", soket_path);
addr.sun_family = AF_LOCAL;
- ret = connect(socket_fd, (struct sockaddr *) &addr ,sizeof(sa_family_t) + strlen(soket_path) );
+ ret = connect(socket_fd, (struct sockaddr *) &addr, sizeof(sa_family_t) + strlen(soket_path));
if (ret != 0) {
running_step = 2;
close(socket_fd);
return;
-fail :
+fail:
return;
}
#define TRM_SOCKET_FOR_SCENARIO_INFO "/dev/socket/scenario_info"
-int Tizen_Resource_Manager(char *event_lock) {
-
+int Tizen_Resource_Manager(char *event_lock)
+{
TRM_send_socket(TRM_SOCKET_FOR_SCENARIO_INFO, event_lock);
return 0;
close(fd);
return -1;
}
- close (fd);
+ close(fd);
return 0;
}
{
char buf[BUFF_MAX] = {0};
- if (sys_read_buf(fname, buf) == 0)
- {
+ if (sys_read_buf(fname, buf) == 0) {
strncpy(str, buf, strlen(buf));
return 0;
}
#define BUFF_MAX 255
#define MAX_NAME 255
-#define MIN(a,b) ((a)<(b) ? (a):(b))
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
#if 0
#define GENERATE_ACCESSORS_CHAR_RW(_suffix, _item) \
char *OEM_sys_get_##_suffix() \
#define devmgr_log(fmt, args...)
#endif
-enum display_type
-{
+enum display_type {
DISP_MAIN = 0,
DISP_SUB,
DISP_MAX
increment,
};
-enum CABC_MODE
-{
+enum CABC_MODE {
CABC_OFF = 0,
CABC_USER_INTERFACE,
CABC_STILL_PICTURE,
TEMP_RANGE_2, /*temperature <= -20*/
};
-struct display_info
-{
+struct display_info {
enum display_type etype; /* FIXME:!! Main LCD or Sub LCD node */
char bl_name[MAX_NAME+1]; /* backlight name */
char lcd_name[MAX_NAME+1]; /* lcd name */
};
int brightness;
- for (brightness=0; (lux > Nr_Table[brightness]) && (brightness < 99); brightness++);
+ for (brightness = 0; (lux > Nr_Table[brightness]) && (brightness < 99); brightness++);
return brightness;
}
index = 0;
dirp = opendir(bl_path);
if (dirp) {
- while(dent = readdir(dirp)) {
+ while (dent = readdir(dirp)) {
if (index >= DISP_MAX) {
devmgr_log("supports %d display node", DISP_MAX);
break;
index = 0;
dirp = opendir(lcd_path);
if (dirp) {
- while(dent = readdir(dirp)) {
+ while (dent = readdir(dirp)) {
if (index >= DISP_MAX) {
devmgr_log("supports %d display node", DISP_MAX);
break;
}
snprintf(path, MAX_NAME, MDNIE_BACKLIGHT_BRIGHTNESS_PATH);
- if(!sys_check_node((char *)path)) {
+ if (!sys_check_node((char *)path)) {
ret = sys_get_int(path, value);
} else {
snprintf(path, MAX_NAME, BACKLIGHT_BRIGHTNESS_PATH, disp_info[index].bl_name);
/*devmgr_log("path[%s]value[%d]power_saving[%d]", path, *value, power_saving);*/
- if (power_saving){
+ if (power_saving) {
snprintf(path, MAX_NAME, BACKLIGHT_MAX_BRIGHTNESS_PATH, disp_info[index].bl_name);
ret = sys_get_int(path, &max_brightness);
- if (ret)
- {
+ if (ret) {
devmgr_log("Can't read max_brightness node[%s]", path);
return ret;
}
}
snprintf(path, MAX_NAME, MDNIE_BACKLIGHT_BRIGHTNESS_PATH);
- if(!sys_check_node((char *)path)) {
+ if (!sys_check_node((char *)path)) {
ret = sys_set_int(path, value);
} else {
snprintf(path, MAX_NAME, BACKLIGHT_BRIGHTNESS_PATH, disp_info[index].bl_name);
value = backlight_max_brightness;
ret = set_backlight_brightness(index, value);
- if (ret)
- {
+ if (ret) {
devmgr_log("Can't set backlight brightness");
return ret;
}
snprintf(lcd_cabc_path, MAX_NAME, LCD_CABC_CONTROL_PATH, disp_info[index].lcd_name);
snprintf(mdnie_cabc_path, MAX_NAME, IMAGE_ENHANCE_PATH, image_enhance_str[INDEX_CABC]);
- if(!sys_check_node((char *)mdnie_cabc_path)) {
+ if (!sys_check_node((char *)mdnie_cabc_path)) {
ret = sys_get_int((char *)mdnie_cabc_path, value);
devmgr_log("path[%s]value[%d]", mdnie_cabc_path, *value);
} else if (!sys_check_node((char *)lcd_cabc_path)) {
snprintf(lcd_cabc_path, MAX_NAME, LCD_CABC_CONTROL_PATH, disp_info[index].lcd_name);
snprintf(mdnie_cabc_path, MAX_NAME, IMAGE_ENHANCE_PATH, image_enhance_str[INDEX_CABC]);
- if(!sys_check_node((char *)mdnie_cabc_path)) {
+ if (!sys_check_node((char *)mdnie_cabc_path)) {
ret = sys_set_int((char *)mdnie_cabc_path, value);
devmgr_log("path[%s]value[%d]", mdnie_cabc_path, value);
} else if (!sys_check_node((char *)lcd_cabc_path)) {
snprintf(lcd_cabc_path, MAX_NAME, LCD_CABC_CONTROL_PATH, disp_info[index].lcd_name);
snprintf(mdnie_cabc_path, MAX_NAME, IMAGE_ENHANCE_PATH, image_enhance_str[INDEX_CABC]);
- if(!sys_check_node((char *)acl_path)) {
+ if (!sys_check_node((char *)acl_path)) {
ret = sys_get_int((char *)acl_path, value);
devmgr_log("path[%s]value[%d]", acl_path, *value);
} else {
- if(!sys_check_node((char *)mdnie_cabc_path)) {
+ if (!sys_check_node((char *)mdnie_cabc_path)) {
ret = sys_get_int((char *)mdnie_cabc_path, value);
devmgr_log("path[%s]value[%d]", mdnie_cabc_path, *value);
} else if (!sys_check_node((char *)lcd_cabc_path)) {
snprintf(lcd_cabc_path, MAX_NAME, LCD_CABC_CONTROL_PATH, disp_info[index].lcd_name);
snprintf(mdnie_cabc_path, MAX_NAME, IMAGE_ENHANCE_PATH, image_enhance_str[INDEX_CABC]);
- if(!sys_check_node((char *)acl_path)) {
+ if (!sys_check_node((char *)acl_path)) {
ret = sys_set_int((char *)acl_path, value);
devmgr_log("path[%s]value[%d]", acl_path, value);
} else {
- if(!sys_check_node((char *)mdnie_cabc_path)) {
+ if (!sys_check_node((char *)mdnie_cabc_path)) {
if (value > CABC_OFF)
value = CABC_USER_INTERFACE;
ret = sys_set_int((char *)mdnie_cabc_path, value);
return 0;
}
-
-
static int OEM_sys_get_extcon(int type, int *value)
{
int ret = -1;
switch (type) {
- case USB_ID:
+ case USB_ID:
{
char buf[BUFF_MAX] = {0};
char *stop;
devmgr_log("USB ID:[0x%x]\n", buf);
break;
}
- default:
+ default:
break;
}
int OEM_sys_set_power_lock(int value)
{
- static int power_lock_state=-1;
+ static int power_lock_state = -1;
- if(power_lock_state == value)
+ if (power_lock_state == value)
return -1;
else
power_lock_state = value;
if (err == -1) {
devmgr_log("power lock node not found");
*value = 0;
- }
- else
+ } else
*value = 1;
return 0;
}
-int OEM_sys_set_resetkey_disable (int value)
+int OEM_sys_set_resetkey_disable(int value)
{
int ret = -1;
else
value = 0;
- ret= sys_set_int(KEY_MANUAL_RESET_PMIC_PATH, value);
- ret= sys_set_int(KEY_MANUAL_RESET_SAFEOUT_PATH, value);
+ ret = sys_set_int(KEY_MANUAL_RESET_PMIC_PATH, value);
+ ret = sys_set_int(KEY_MANUAL_RESET_SAFEOUT_PATH, value);
return ret;
}
devman_plugin_interface_sc7727.OEM_sys_get_battery_charge_now = &OEM_sys_get_battery_charge_now;
devman_plugin_interface_sc7727.OEM_sys_get_battery_present = &OEM_sys_get_battery_present;
devman_plugin_interface_sc7727.OEM_sys_get_battery_health = &OEM_sys_get_battery_health;
- devman_plugin_interface_sc7727.OEM_sys_get_battery_polling_required= &OEM_sys_get_battery_polling_required;
+ devman_plugin_interface_sc7727.OEM_sys_get_battery_polling_required = &OEM_sys_get_battery_polling_required;
devman_plugin_interface_sc7727.OEM_sys_get_battery_support_insuspend_charging = &OEM_sys_get_battery_support_insuspend_charging;
/* Connection interfaces */
devman_plugin_interface_sc7727.OEM_sys_set_battery_siop_active = &OEM_sys_set_battery_siop_active;
devman_plugin_interface_sc7727.OEM_sys_get_cpu_enable_max_number = &OEM_sys_get_cpu_enable_max_number;
- devman_plugin_interface_sc7727.OEM_sys_set_cpu_enable_max_number= &OEM_sys_set_cpu_enable_max_number;
+ devman_plugin_interface_sc7727.OEM_sys_set_cpu_enable_max_number = &OEM_sys_set_cpu_enable_max_number;
devman_plugin_interface_sc7727.OEM_sys_set_pm_scenario = &Tizen_Resource_Manager;
#include "device_manager_io.h"
#define DEVMGR_LOG
-#if defined (DEVMGR_LOG)
+#if defined(DEVMGR_LOG)
#define LOG_TAG "DEVICE_PLUGIN"
#include <dlog/dlog.h>
#define devmgr_log(fmt, args...) SLOGD(fmt, ##args)
Redwood SIOP table
Last updated on 2013.5.15
====================================================*/
-const device_siop_table siop_table[SIOP_SCENARIO_MAX][SIOP_LEVEL_MAX] =
-{
+const device_siop_table siop_table[SIOP_SCENARIO_MAX][SIOP_LEVEL_MAX] = {
{/*********** LCD ON *****************************/
/* ITEM : cpu_freq cpu_core charging BL lcd_freq */
/* UNIT : MHz #core mA cd Hz */
{/*********** LCD OFF ****************************/
/* ITEM : cpu_freq cpu_core charging BL lcd_freq */
- /* UNIT : MHz #core mA cd Hz */
+ /* UNIT : MHz #core mA cd Hz */
/* level 0 */{IGNORE, IGNORE, IGNORE, IGNORE, IGNORE},
/* level 1 */{IGNORE, IGNORE, IGNORE, IGNORE, IGNORE},
/* level 2 */{IGNORE, IGNORE, IGNORE, IGNORE, IGNORE},
#define MAX_NAME 255
#define BUFF_MAX 255
-enum display_type
-{
+enum display_type {
DISP_MAIN = 0,
DISP_SUB,
DISP_MAX
};
-struct display_info
-{
+struct display_info {
enum display_type etype; /* FIXME:!! Main LCD or Sub LCD node */
char bl_name[MAX_NAME+1]; /* backlight name */
char lcd_name[MAX_NAME+1]; /* lcd name */
static int sys_set_battery_siop_control(int level, int charge_current)
{
int ret;
- int siop_activated=0;
+ int siop_activated = 0;
char buf[BUFF_MAX];
- if (charge_current>=0)
+ if (charge_current >= 0)
siop_activated = 1;
ret = sys_set_int(BATTERY_SIOP_ACTIVATE_PATH, siop_activated);
return -ENODEV;
}
- if(siop_activated == 1) {
+ if (siop_activated == 1) {
ret = sys_set_int(BATTERY_SIOP_LEVEL_PATH, level);
if (ret == -1) {
return -ENODEV;
}
snprintf(path, MAX_NAME, MDNIE_BACKLIGHT_OVERHEATING_PATH);
- if(!sys_check_node((char *)path)) {
+ if (!sys_check_node((char *)path)) {
ret = sys_get_int(path, value);
} else {
snprintf(path, MAX_NAME, BACKLIGHT_OVERHEATING_PATH, disp_info[index].bl_name);
}
ret = set_backlight_brightness(index, value);
- if (ret)
- {
+ if (ret) {
devmgr_log("Can't set backlight brightness");
return ret;
}
return ret;
}
-int current_level=-1, current_mode=-1;
+int current_level = -1, current_mode = -1;
device_siop_table current_table = {RELEASE, RELEASE, RELEASE, 100, 60};
int OEM_sys_set_siop_control(int level, int mode)
memcpy(&new_table, &siop_table[mode][level], sizeof(device_siop_table));
- devmgr_log("level %d, mode %d",level, mode);
- devmgr_log("current_siop {%d, %d, %d, %d, %d}",current_table.cpu_freq, current_table.cpu_max_core,\
+ devmgr_log("level %d, mode %d", level, mode);
+ devmgr_log("current_siop {%d, %d, %d, %d, %d}", current_table.cpu_freq, current_table.cpu_max_core,\
current_table.battery_charing, current_table.backlight, current_table.lcd_freq);
- devmgr_log("new_siop {%d, %d, %d, %d, %d}",new_table.cpu_freq, new_table.cpu_max_core,\
+ devmgr_log("new_siop {%d, %d, %d, %d, %d}", new_table.cpu_freq, new_table.cpu_max_core,\
new_table.battery_charing, new_table.backlight, new_table.lcd_freq);
- if((current_level==level) && (current_mode==mode))
+ if ((current_level == level) && (current_mode == mode))
return 0;
/* CPU */
- if((new_table.cpu_freq != IGNORE) && (new_table.cpu_freq != current_table.cpu_freq)) {
- devmgr_log("CPU max clock %d",new_table.cpu_freq);
+ if ((new_table.cpu_freq != IGNORE) && (new_table.cpu_freq != current_table.cpu_freq)) {
+ devmgr_log("CPU max clock %d", new_table.cpu_freq);
sys_set_int(CPUFREQ_POWER_MAX_FREQ_PATH, new_table.cpu_freq);
current_table.cpu_freq = new_table.cpu_freq;
}
- if((new_table.cpu_max_core != IGNORE) && (new_table.cpu_max_core != current_table.cpu_max_core)) {
- devmgr_log("CPU max core num %d",new_table.cpu_max_core);
+ if ((new_table.cpu_max_core != IGNORE) && (new_table.cpu_max_core != current_table.cpu_max_core)) {
+ devmgr_log("CPU max core num %d", new_table.cpu_max_core);
sys_set_int(CPU_ENABLE_MAX_NUMBER_PATH, new_table.cpu_max_core);
current_table.cpu_max_core = new_table.cpu_max_core;
}
/* Battery charging */
//OEM_sys_set_battery_siop_active(siop_table[level].battery_charing);
- if((new_table.battery_charing != IGNORE) && (new_table.battery_charing != current_table.battery_charing)) {
- devmgr_log("battery_charing current %d",new_table.battery_charing);
+ if ((new_table.battery_charing != IGNORE) && (new_table.battery_charing != current_table.battery_charing)) {
+ devmgr_log("battery_charing current %d", new_table.battery_charing);
sys_set_battery_siop_control(level, new_table.battery_charing);
current_table.battery_charing = new_table.battery_charing;
}
/* LCD */
- if((new_table.backlight != IGNORE) && (new_table.backlight != current_table.backlight)) {
- devmgr_log("backlight %d",new_table.backlight);
+ if ((new_table.backlight != IGNORE) && (new_table.backlight != current_table.backlight)) {
+ devmgr_log("backlight %d", new_table.backlight);
OEM_sys_set_backlight_overheating_control(DISP_MAIN, new_table.backlight);
current_table.backlight = new_table.backlight;
}
- if((new_table.lcd_freq != IGNORE) && (new_table.lcd_freq != current_table.lcd_freq)) {
- devmgr_log("lcd_freq %d",new_table.lcd_freq);
+ if ((new_table.lcd_freq != IGNORE) && (new_table.lcd_freq != current_table.lcd_freq)) {
+ devmgr_log("lcd_freq %d", new_table.lcd_freq);
sys_set_int(DISPLAY_FRAME_RATE_PATH, new_table.lcd_freq);
current_table.lcd_freq = new_table.lcd_freq;
}
- current_level=level;
- current_mode=mode;
+ current_level = level;
+ current_mode = mode;
return 0;
}
#define devmgr_log(fmt, args...)
#endif
-enum display_type
-{
+enum display_type {
DISP_MAIN = 0,
DISP_SUB,
DISP_MAX
increment,
};
-enum CABC_MODE
-{
+enum CABC_MODE {
CABC_OFF = 0,
CABC_USER_INTERFACE,
CABC_STILL_PICTURE,
CABC_MAX,
};
-struct display_info
-{
+struct display_info {
enum display_type etype; /* FIXME:!! Main LCD or Sub LCD node */
char bl_name[MAX_NAME+1]; /* backlight name */
char lcd_name[MAX_NAME+1]; /* lcd name */
};
int brightness;
- for (brightness=0; (lux > Nr_Table[brightness]) && (brightness < 99); brightness++);
+ for (brightness = 0; (lux > Nr_Table[brightness]) && (brightness < 99); brightness++);
return brightness;
}
index = 0;
dirp = opendir(bl_path);
if (dirp) {
- while(dent = readdir(dirp)) {
+ while (dent = readdir(dirp)) {
if (index >= DISP_MAX) {
devmgr_log("supports %d display node", DISP_MAX);
break;
index = 0;
dirp = opendir(lcd_path);
if (dirp) {
- while(dent = readdir(dirp)) {
+ while (dent = readdir(dirp)) {
if (index >= DISP_MAX) {
devmgr_log("supports %d display node", DISP_MAX);
break;
}
snprintf(path, MAX_NAME, MDNIE_BACKLIGHT_BRIGHTNESS_PATH);
- if(!sys_check_node((char *)path)) {
+ if (!sys_check_node((char *)path)) {
ret = sys_get_int(path, value);
- printf("[%s:%d]:path is %s\n",__FUNCTION__, __LINE__, path);
+ printf("[%s:%d]:path is %s\n", __FUNCTION__, __LINE__, path);
} else {
snprintf(path, MAX_NAME, BACKLIGHT_BRIGHTNESS_PATH, disp_info[index].bl_name);
ret = sys_get_int(path, value);
- printf("[%s:%d]:path is %s\n",__FUNCTION__, __LINE__, path);
+ printf("[%s:%d]:path is %s\n", __FUNCTION__, __LINE__, path);
}
/*devmgr_log("path[%s]value[%d]power_saving[%d]", path, *value, power_saving);*/
- if (power_saving){
+ if (power_saving) {
snprintf(path, MAX_NAME, BACKLIGHT_MAX_BRIGHTNESS_PATH, disp_info[index].bl_name);
- printf("[%s:%d]:path is %s\n",__FUNCTION__, __LINE__, path);
+ printf("[%s:%d]:path is %s\n", __FUNCTION__, __LINE__, path);
ret = sys_get_int(path, &max_brightness);
- if (ret)
- {
+ if (ret) {
devmgr_log("Can't read max_brightness node[%s]", path);
return ret;
}
}
snprintf(path, MAX_NAME, MDNIE_BACKLIGHT_BRIGHTNESS_PATH);
- if(!sys_check_node((char *)path)) {
+ if (!sys_check_node((char *)path)) {
ret = sys_set_int(path, value);
} else {
snprintf(path, MAX_NAME, BACKLIGHT_BRIGHTNESS_PATH, disp_info[index].bl_name);
devmgr_log("path[%s]value[%d]power_saving[%d]", path, value, power_saving);
- if (power_saving){
+ if (power_saving) {
snprintf(path, MAX_NAME, BACKLIGHT_MAX_BRIGHTNESS_PATH, disp_info[index].bl_name);
ret = sys_get_int(path, &max_brightness);
- if (ret)
- {
+ if (ret) {
devmgr_log("Can't read max_brightness node[%s]", path);
return ret;
}
}
ret = set_backlight_brightness(index, value);
- if (ret)
- {
+ if (ret) {
devmgr_log("Can't set backlight brightness");
return ret;
}
snprintf(lcd_cabc_path, MAX_NAME, LCD_CABC_CONTROL_PATH, disp_info[index].lcd_name);
snprintf(mdnie_cabc_path, MAX_NAME, IMAGE_ENHANCE_PATH, image_enhance_str[INDEX_CABC]);
- if(!sys_check_node((char *)mdnie_cabc_path)) {
+ if (!sys_check_node((char *)mdnie_cabc_path)) {
ret = sys_get_int((char *)mdnie_cabc_path, value);
devmgr_log("path[%s]value[%d]", mdnie_cabc_path, *value);
} else if (!sys_check_node((char *)lcd_cabc_path)) {
snprintf(lcd_cabc_path, MAX_NAME, LCD_CABC_CONTROL_PATH, disp_info[index].lcd_name);
snprintf(mdnie_cabc_path, MAX_NAME, IMAGE_ENHANCE_PATH, image_enhance_str[INDEX_CABC]);
- if(!sys_check_node((char *)mdnie_cabc_path)) {
+ if (!sys_check_node((char *)mdnie_cabc_path)) {
ret = sys_set_int((char *)mdnie_cabc_path, value);
devmgr_log("path[%s]value[%d]", mdnie_cabc_path, value);
} else if (!sys_check_node((char *)lcd_cabc_path)) {
snprintf(lcd_cabc_path, MAX_NAME, LCD_CABC_CONTROL_PATH, disp_info[index].lcd_name);
snprintf(mdnie_cabc_path, MAX_NAME, IMAGE_ENHANCE_PATH, image_enhance_str[INDEX_CABC]);
- if(!sys_check_node((char *)acl_path)) {
+ if (!sys_check_node((char *)acl_path)) {
ret = sys_get_int((char *)acl_path, value);
devmgr_log("path[%s]value[%d]", acl_path, *value);
} else {
- if(!sys_check_node((char *)mdnie_cabc_path)) {
+ if (!sys_check_node((char *)mdnie_cabc_path)) {
ret = sys_get_int((char *)mdnie_cabc_path, value);
devmgr_log("path[%s]value[%d]", mdnie_cabc_path, *value);
} else if (!sys_check_node((char *)lcd_cabc_path)) {
snprintf(lcd_cabc_path, MAX_NAME, LCD_CABC_CONTROL_PATH, disp_info[index].lcd_name);
snprintf(mdnie_cabc_path, MAX_NAME, IMAGE_ENHANCE_PATH, image_enhance_str[INDEX_CABC]);
- if(!sys_check_node((char *)acl_path)) {
+ if (!sys_check_node((char *)acl_path)) {
ret = sys_set_int((char *)acl_path, value);
devmgr_log("path[%s]value[%d]", acl_path, value);
} else {
- if(!sys_check_node((char *)mdnie_cabc_path)) {
+ if (!sys_check_node((char *)mdnie_cabc_path)) {
if (value > CABC_OFF)
value = CABC_USER_INTERFACE;
ret = sys_set_int((char *)mdnie_cabc_path, value);
int OEM_sys_set_power_lock(int value)
{
- static int power_lock_state=-1;
+ static int power_lock_state = -1;
- if(power_lock_state == value)
+ if (power_lock_state == value)
return -1;
else
power_lock_state = value;
if (err == -1) {
devmgr_log("power lock node not found");
*value = 0;
- }
- else
+ } else
*value = 1;
return 0;
}
-int OEM_sys_set_resetkey_disable (int value)
+int OEM_sys_set_resetkey_disable(int value)
{
int ret = -1;
else
value = 0;
- ret= sys_set_int(KEY_MANUAL_RESET_PMIC_PATH, value);
- ret= sys_set_int(KEY_MANUAL_RESET_SAFEOUT_PATH, value);
+ ret = sys_set_int(KEY_MANUAL_RESET_PMIC_PATH, value);
+ ret = sys_set_int(KEY_MANUAL_RESET_SAFEOUT_PATH, value);
return ret;
}
devman_plugin_interface_sc7727.OEM_sys_get_battery_charge_now = &OEM_sys_get_battery_charge_now;
devman_plugin_interface_sc7727.OEM_sys_get_battery_present = &OEM_sys_get_battery_present;
devman_plugin_interface_sc7727.OEM_sys_get_battery_health = &OEM_sys_get_battery_health;
- devman_plugin_interface_sc7727.OEM_sys_get_battery_polling_required= &OEM_sys_get_battery_polling_required;
+ devman_plugin_interface_sc7727.OEM_sys_get_battery_polling_required = &OEM_sys_get_battery_polling_required;
devman_plugin_interface_sc7727.OEM_sys_get_battery_support_insuspend_charging = &OEM_sys_get_battery_support_insuspend_charging;
/* Connection interfaces */
devman_plugin_interface_sc7727.OEM_sys_set_battery_siop_active = &OEM_sys_set_battery_siop_active;
devman_plugin_interface_sc7727.OEM_sys_get_cpu_enable_max_number = &OEM_sys_get_cpu_enable_max_number;
- devman_plugin_interface_sc7727.OEM_sys_set_cpu_enable_max_number= &OEM_sys_set_cpu_enable_max_number;
+ devman_plugin_interface_sc7727.OEM_sys_set_cpu_enable_max_number = &OEM_sys_set_cpu_enable_max_number;
devman_plugin_interface_sc7727.OEM_sys_get_temperature_adc = &OEM_sys_get_temperature_adc;
devman_plugin_interface_sc7727.OEM_sys_get_temperature_value = &OEM_sys_get_temperature_value;
OEM_sys_get_backlight_min_brightness(int index, int *value); //MISSING & not present in Redwood
int OEM_sys_set_svcled_color(int rgb, int led_on_ms, int led_off_ms); //MISSING & .......
- int OEM_sys_set_resetkey_disable (int value); //MISSING & .......
+ int OEM_sys_set_resetkey_disable(int value); //MISSING & .......
int OEM_sys_set_irled_control(char *value); //MISSING & .......