forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/power/supply/ucs1002_power.c
....@@ -384,7 +384,8 @@
384384 case POWER_SUPPLY_PROP_USB_TYPE:
385385 return ucs1002_get_usb_type(info, val);
386386 case POWER_SUPPLY_PROP_HEALTH:
387
- return val->intval = info->health;
387
+ val->intval = info->health;
388
+ return 0;
388389 case POWER_SUPPLY_PROP_PRESENT:
389390 val->intval = info->present;
390391 return 0;