/* Get a single property from the fuel gauge  */
static int max17048_get_single_prop_impl(const struct device *dev, fuel_gauge_prop_t prop, union fuel_gauge_prop_val *val)
/* Get a single property from the fuel gauge  */
static int max17048_get_single_prop_impl(const struct device *dev, fuel_gauge_prop_t prop, union fuel_gauge_prop_val *val)
{
	struct max17048_data *data = dev->data;
	int rc = 0;
	switch (prop) {
	case FUEL_GAUGE_RUNTIME_TO_EMPTY:
		val->runtime_to_empty = data->time_to_empty;
		break;
	case FUEL_GAUGE_RUNTIME_TO_FULL:
		val->runtime_to_full = data->time_to_full;
		break;
	case FUEL_GAUGE_RELATIVE_STATE_OF_CHARGE:
		val->relative_state_of_charge = data->charge;
		break;
	case FUEL_GAUGE_VOLTAGE:
		val->voltage = data->voltage;
		break;
	default:
		rc = -ENOTSUP;
	}
	return rc;
}