From 464cfb4ca23a21f652412cc479805f6f2e405bb9 Mon Sep 17 00:00:00 2001 From: lokilee73 Date: Fri, 4 Dec 2020 14:53:46 +0900 Subject: [PATCH] Fix typo Change-Id: I16ff0cf0d03650cdfc909906c9b3e7f959dd6f03 Signed-off-by: lokilee73 --- plugins/iot/display/core.c | 21 +++++++++++---------- plugins/mobile/display/core.c | 21 +++++++++++---------- plugins/tv/display/core.c | 21 +++++++++++---------- plugins/wearable/display/core.c | 22 +++++++++++----------- src/display/display-lock.c | 2 +- src/usbhost/usb-host.c | 10 +++++----- 6 files changed, 50 insertions(+), 47 deletions(-) diff --git a/plugins/iot/display/core.c b/plugins/iot/display/core.c index 13f389e..acb6790 100644 --- a/plugins/iot/display/core.c +++ b/plugins/iot/display/core.c @@ -345,19 +345,20 @@ void lcd_on_procedure(int state, enum device_flags flag) unsigned long flags = get_lcd_on_flags(); flags |= flag; - leave_doze(); - /* * Display on procedure - * step 1. broadcast lcd on signal with cause - * step 2. set brightness - * step 3. set pmstate of vconf - * step 4. display on operate + * step 1. leave doze + * step 2. broadcast lcd on signal with cause + * step 3. set brightness + * step 4. set pmstate of vconf + * step 5. display on operate * - a. display on * - b. TSP(touch screen) and touchkey enable - * step 5. broadcast lcd on complete siganl - * step 6. key backlight enable + * step 6. broadcast lcd on complete signal + * step 7. key backlight enable */ + leave_doze(); + _I("[lcdstep] 0x%lx", flags); if (flags & AMBIENT_MODE) { @@ -836,7 +837,7 @@ int display_on_by_reason(const char *reason, int timeout) else if (!strncmp(reason, EVENT_STR, str_len)) flag = LCD_ON_BY_EVENT; else { - _E("Reason is unkown(%s)", reason); + _E("Reason is unknown(%s)", reason); return -EINVAL; } @@ -888,7 +889,7 @@ int display_off_by_reason(const char *reason) flag = LCD_OFF_BY_PALM; } else { - _E("Reason is unkown(%s)", reason); + _E("Reason is unknown(%s)", reason); return -EINVAL; } diff --git a/plugins/mobile/display/core.c b/plugins/mobile/display/core.c index 29050cb..693f4a4 100644 --- a/plugins/mobile/display/core.c +++ b/plugins/mobile/display/core.c @@ -353,19 +353,20 @@ void lcd_on_procedure(int state, enum device_flags flag) unsigned long flags = get_lcd_on_flags(); flags |= flag; - leave_doze(); - /* * Display on procedure - * step 1. broadcast lcd on signal with cause - * step 2. set brightness - * step 3. set pmstate of vconf - * step 4. display on operate + * step 1. leave doze + * step 2. broadcast lcd on signal with cause + * step 3. set brightness + * step 4. set pmstate of vconf + * step 5. display on operate * - a. display on * - b. TSP(touch screen) and touchkey enable - * step 5. broadcast lcd on complete siganl - * step 6. key backlight enable + * step 6. broadcast lcd on complete signal + * step 7. key backlight enable */ + leave_doze(); + _I("[lcdstep] 0x%lx", flags); if (flags & AMBIENT_MODE) { @@ -844,7 +845,7 @@ int display_on_by_reason(const char *reason, int timeout) else if (!strncmp(reason, EVENT_STR, str_len)) flag = LCD_ON_BY_EVENT; else { - _E("Reason is unkown(%s)", reason); + _E("Reason is unknown(%s)", reason); return -EINVAL; } @@ -896,7 +897,7 @@ int display_off_by_reason(const char *reason) flag = LCD_OFF_BY_PALM; } else { - _E("Reason is unkown(%s)", reason); + _E("Reason is unknown(%s)", reason); return -EINVAL; } diff --git a/plugins/tv/display/core.c b/plugins/tv/display/core.c index 41cecfd..1a8af7f 100644 --- a/plugins/tv/display/core.c +++ b/plugins/tv/display/core.c @@ -346,19 +346,20 @@ void lcd_on_procedure(int state, enum device_flags flag) unsigned long flags = get_lcd_on_flags(); flags |= flag; - leave_doze(); - /* * Display on procedure - * step 1. broadcast lcd on signal with cause - * step 2. set brightness - * step 3. set pmstate of vconf - * step 4. display on operate + * step 1. leave doze + * step 2. broadcast lcd on signal with cause + * step 3. set brightness + * step 4. set pmstate of vconf + * step 5. display on operate * - a. display on * - b. TSP(touch screen) and touchkey enable - * step 5. broadcast lcd on complete siganl - * step 6. key backlight enable + * step 6. broadcast lcd on complete signal + * step 7. key backlight enable */ + leave_doze(); + _I("[lcdstep] 0x%lx", flags); if (flags & AMBIENT_MODE) { @@ -837,7 +838,7 @@ int display_on_by_reason(const char *reason, int timeout) else if (!strncmp(reason, EVENT_STR, str_len)) flag = LCD_ON_BY_EVENT; else { - _E("Reason is unkown(%s)", reason); + _E("Reason is unknown(%s)", reason); return -EINVAL; } @@ -889,7 +890,7 @@ int display_off_by_reason(const char *reason) flag = LCD_OFF_BY_PALM; } else { - _E("Reason is unkown(%s)", reason); + _E("Reason is unknown(%s)", reason); return -EINVAL; } diff --git a/plugins/wearable/display/core.c b/plugins/wearable/display/core.c index 6596a70..1f1bf44 100644 --- a/plugins/wearable/display/core.c +++ b/plugins/wearable/display/core.c @@ -554,20 +554,20 @@ void lcd_on_procedure(int state, enum device_flags flag) flags |= flag; int ret; - leave_doze(); - /* * Display on procedure - * step 0. check if display is detached (only for factory mode) - * step 1. broadcast lcd on signal with cause - * step 2. set brightness - * step 3. set pmstate of vconf - * step 4. display on operate + * step 1. leave doze + * step 2. check if display is detached (only for factory mode) + * step 3. broadcast lcd on signal with cause + * step 4. set brightness + * step 5. set pmstate of vconf + * step 6. display on operate * - a. display on * - b. TSP(touch screen) and touchkey enable - * step 5. broadcast lcd on complete signal - * step 6. key backlight enable + * step 7. broadcast lcd on complete signal + * step 8. key backlight enable */ + leave_doze(); ret = is_lcdon_blocked(); if (ret != LCDON_BLOCK_NONE) { @@ -1089,7 +1089,7 @@ int display_on_by_reason(const char *reason, int timeout) else if (!strncmp(reason, EVENT_STR, str_len)) flag = LCD_ON_BY_EVENT; else { - _E("Reason is unkown(%s)", reason); + _E("Reason is unknown(%s)", reason); return -EINVAL; } @@ -1736,7 +1736,7 @@ static int default_action(int timeout) states[get_pm_cur_state()].name, last_timeout, diff); } - /* update status for batter monitor */ + /* update status for battery monitor */ update_bds_record(get_pm_cur_state()); switch (get_pm_cur_state()) { diff --git a/src/display/display-lock.c b/src/display/display-lock.c index ade3cd1..ad1b27b 100644 --- a/src/display/display-lock.c +++ b/src/display/display-lock.c @@ -373,7 +373,7 @@ void print_node(int next) g_variant_new("(i)", n->pid)); if (ret < 0) _E("Failed to send dbus signal pmlock_over."); - n->broadcast_warning = false; + n->broadcast_warning = false; } _W("Over(%.0f s) pid( %5d) lock time(%s)", diff, n->pid, buf); } else diff --git a/src/usbhost/usb-host.c b/src/usbhost/usb-host.c index 83dacf3..e99777a 100644 --- a/src/usbhost/usb-host.c +++ b/src/usbhost/usb-host.c @@ -833,9 +833,9 @@ static void finish_opening(struct usbhost_open_request *req, int policy) goto out; } - /* send along the stdin in case - * g_application_command_line_get_stdin_data() is called - */ + /** send along the stdin in case + * g_application_command_line_get_stdin_data() is called + */ fd_list = g_unix_fd_list_new(); if (g_unix_fd_list_append(fd_list, fd, &error) < 0) { _E("Failed to append fd in unix fd list: %s\n", error->message); @@ -1116,7 +1116,7 @@ static const dbus_interface_u dbus_interface = { static int booting_done(void *data) { /** - * To search the attched usb host device is not an argent task. + * To search the attched usb host device is not an urgent task. * So deviced does not load while booting time. * After booting task is done, it tries to find the attached devices. */ @@ -1166,7 +1166,7 @@ static void usbhost_exit(void *data) { int ret; - /* unreigset usbhost uevent */ + /* unregister usbhost uevent */ ret = unregister_kernel_uevent_control(&uh); if (ret < 0) _E("Failed to unregister usb uevent: %d", ret); -- 2.7.4