summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2017-09-12 10:53:29 +0900
committerINSUN PYO <insun.pyo@samsung.com>2017-09-12 01:56:44 +0000
commitfb08937c04cea47e3a0742a1f941763b359bd479 (patch)
treec725e123660e9fd694d9bfff61bfd5e4965f34d7
parentec8c73e41a57a6b519c730ec3461d83a2363be7e (diff)
downloaddevice-manager-plugin-artik-fb08937c04cea47e3a0742a1f941763b359bd479.tar.gz
device-manager-plugin-artik-fb08937c04cea47e3a0742a1f941763b359bd479.tar.bz2
device-manager-plugin-artik-fb08937c04cea47e3a0742a1f941763b359bd479.zip
Signed-off-by: INSUN PYO <insun.pyo@samsung.com> Change-Id: I21e21fb7444722f7559b3dc8de7b2540e00e7ef8 (cherry picked from commit b688a4a641f3d0582cd9a9ffd0bf66254fbf3294)
-rwxr-xr-xhw/battery/battery.c2
-rw-r--r--hw/usb_client/usb_client.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/hw/battery/battery.c b/hw/battery/battery.c
index 6baf474..076a542 100755
--- a/hw/battery/battery.c
+++ b/hw/battery/battery.c
@@ -57,7 +57,7 @@ static void remove_not_string(char *str)
{
char *t = str;
- while(*t != '\0') {
+ while (*t != '\0') {
if (*t == '\r' ||
*t == '\n' ||
*t == '\x0a')
diff --git a/hw/usb_client/usb_client.c b/hw/usb_client/usb_client.c
index 455e741..2716eea 100644
--- a/hw/usb_client/usb_client.c
+++ b/hw/usb_client/usb_client.c
@@ -172,7 +172,7 @@ static int legacy_alloc_config(int n_funcs, struct usb_configuration **_config)
if (!config->funcs)
goto free_strs;
- /*
+ /*
* We cannot read correct values
* so assume that they are always default
*/
@@ -444,7 +444,7 @@ static int legacy_set_gadget_strs(struct usb_gadget_strings *strs)
/*
* TODO
* Here is a good place to ensure that serial is immutable
- */
+ */
if (strs->manufacturer) {
ret = sys_set_str(LEGACY_IMANUFACTURER_PATH,
@@ -531,7 +531,7 @@ static int legacy_enable(struct usb_client *usb)
static int legacy_disable(struct usb_client *usb)
{
return sys_set_str(LEGACY_ENABLE_PATH,
- LEGACY_DISABLE);
+ LEGACY_DISABLE);
}
static void legacy_free_config(struct usb_configuration *config)