Skip to content
Permalink
Browse files

app_info: change baseband_version to framebuffer_boosted

Cosmetic and probably more accurate. I felt guilty for blindly
calling this baseband version even though that's the very assumption
we're making anyway. :D

Conflicts:
	fs/proc/app_info.c
  • Loading branch information...
Dazzozo committed Mar 12, 2013
1 parent 8d29a56 commit ccd69296d9616380c0dd3b1af5429165bb91b292
Showing with 12 additions and 12 deletions.
  1. +5 −5 arch/arm/mach-msm/hardware_self_adapt.c
  2. +6 −6 fs/proc/app_info.c
  3. +1 −1 include/linux/hardware_self_adapt.h
@@ -237,22 +237,22 @@ char *get_bt_device_name(void)
return bt_device_array[i].dev_name;
}

char *get_baseband_version(void)
char *get_framebuffer_boosted(void)
{
char *baseband_version = NULL;
char *framebuffer_boosted = NULL;
#ifdef CONFIG_FRAMEBUF_SELF_ADAPT_HACK
if(frame_buffer_boosted)
{
baseband_version = "109808";
framebuffer_boosted = "1";
}
else
{
#endif
baseband_version = "2030";
framebuffer_boosted = "0";
#ifdef CONFIG_FRAMEBUF_SELF_ADAPT_HACK
}
#endif
return baseband_version;
return framebuffer_boosted;
}

void get_audio_property(char *audio_property)
@@ -315,7 +315,7 @@ static int app_version_read_proc(char *page, char **start, off_t off,
char * touch_info = NULL;
char *wifi_device_name = NULL;
char *bt_device_name = NULL;
char *baseband_version = NULL;
char *framebuffer_boosted = NULL;
char audio_property[AUDIO_PROPERTY_LEN] = {0};
char s_board_id[BOARD_ID_LEN + BOARD_ID_SUB_VER_LEN] = {0};
char sub_ver[BOARD_ID_SUB_VER_LEN] = {0};
@@ -334,7 +334,7 @@ static int app_version_read_proc(char *page, char **start, off_t off,
lcd_name = get_lcd_panel_name();
wifi_device_name = get_wifi_device_name();
bt_device_name = get_bt_device_name();
baseband_version = get_baseband_version();
framebuffer_boosted = get_framebuffer_boosted();
get_audio_property(audio_property);
touch_info = get_touch_info();
if (touch_info == NULL)
@@ -358,12 +358,12 @@ static int app_version_read_proc(char *page, char **start, off_t off,
"compass_gs_position:\n%s\n"
"sensors_list:\n%s\n"
"hw_version:\n%s\n"
"baseband_version:\n%s\n"
"framebuffer_boosted:\n%s\n"
"wifi_chip:\n%s\n"
"bt_chip:\n%s\n"
"audio_property:\n%s\n"
"touch_info:\n%s\n",
appsboot_version, ker_ver, str_flash_nand_id, s_board_id, lcd_name, camera_id, ts_id, charge_flag, compass_gs_name, sensors_list_name, hw_version_id, baseband_version, wifi_device_name, bt_device_name, audio_property, touch_info);
appsboot_version, ker_ver, str_flash_nand_id, s_board_id, lcd_name, camera_id, ts_id, charge_flag, compass_gs_name, sensors_list_name, hw_version_id, framebuffer_boosted, wifi_device_name, bt_device_name, audio_property, touch_info);
#else
len = snprintf(page, PAGE_SIZE, "APPSBOOT:\n"
"%s\n"
@@ -378,10 +378,10 @@ static int app_version_read_proc(char *page, char **start, off_t off,
"compass_gs_position:\n%s\n"
"sensors_list:\n%s\n"
"hw_version:\n%s\n"
"baseband_version:\n%s\n"
"framebuffer_boosted:\n%s\n"
"audio_property:\n%s\n"
"touch_info:\n%s\n",
appsboot_version, ker_ver, str_flash_nand_id, s_board_id, lcd_name, camera_id, ts_id, compass_gs_name, sensors_list_name, hw_version_id, baseband_version, audio_property, touch_info);
appsboot_version, ker_ver, str_flash_nand_id, s_board_id, lcd_name, camera_id, ts_id, compass_gs_name, sensors_list_name, hw_version_id, framebuffer_boosted, audio_property, touch_info);
#endif

return proc_calc_metrics(page, start, off, count, eof, len);
@@ -321,7 +321,7 @@ int board_support_ofn(bool * ofn_support);
char *get_compass_gs_position_name(void);
char *get_sensors_list_name(void);
char *get_wifi_device_name(void);
char *get_baseband_version(void);
char *get_framebuffer_boosted(void);
lcd_panel_type get_lcd_panel_type(void);
hw_bt_device_model get_hw_bt_device_model(void);
char *get_bt_device_name(void);

0 comments on commit ccd6929

Please sign in to comment.
You can’t perform that action at this time.