Skip to content
This repository has been archived by the owner on Nov 18, 2019. It is now read-only.

Commit

Permalink
charge_level: simplify ac, usb and wl sysfs
Browse files Browse the repository at this point in the history
to make it compatible with SmartPack-Kernel Manager without touching the functionalities of Boeffla-Config

Signed-off-by: sunilpaulmathew <sunil.kde@gmail.com>
  • Loading branch information
sunilpaulmathew committed May 3, 2018
1 parent 96c0ee5 commit 4e22b13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/mach-msm/charge_level.c
Expand Up @@ -23,7 +23,7 @@
static ssize_t charge_level_ac_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{
// print current value
return sprintf(buf, "%d mA", ac_level);
return sprintf(buf, "%d", ac_level);
}


Expand Down Expand Up @@ -55,7 +55,7 @@ static ssize_t charge_level_ac_store(struct kobject *kobj, struct kobj_attribute
static ssize_t charge_level_usb_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{
// print current value
return sprintf(buf, "%d mA", usb_level);
return sprintf(buf, "%d", usb_level);
}


Expand Down Expand Up @@ -86,7 +86,7 @@ static ssize_t charge_level_usb_store(struct kobject *kobj, struct kobj_attribut
static ssize_t charge_level_wireless_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{
// print current value
return sprintf(buf, "%d mA", wireless_level);
return sprintf(buf, "%d", wireless_level);
}


Expand Down

0 comments on commit 4e22b13

Please sign in to comment.