Lines Matching defs:reporting_unit
287 char *reporting_unit;
340 reporting_unit = libhal_device_get_property_string(ctx, udi,
350 if (reporting_unit && strcmp(reporting_unit, "mAh") == 0) {
381 libhal_free_string(reporting_unit);
439 libhal_free_string(reporting_unit);
454 char reporting_unit[10];
486 strlcpy(reporting_unit, "mAh", sizeof (reporting_unit));
490 strlcpy(reporting_unit, "mWh", sizeof (reporting_unit));
513 if (reporting_unit && strcmp(reporting_unit, "mAh") == 0) {
533 if (reporting_unit && strcmp(reporting_unit, "mWh") == 0) {