static ssize_t pseudo_batt_store_property(struct device *dev,
		struct device_attribute *attr,
		const char *buf, size_t count)
{
	int ret = -EINVAL;
	struct pseudo_batt_info_type info;

	if (sscanf(buf, "%d %d %d %d %d %d %d", &info.mode, &info.id, &info.therm,
				&info.temp, &info.volt, &info.capacity, &info.charging) != 7)
	{
		if(info.mode == 1) //pseudo mode
		{
			printk(KERN_ERR "usage : echo [mode] [ID] [therm] [temp] [volt] [cap] [charging] > pseudo_batt");
			goto out;
		}
	}
#ifdef CONFIG_MACH_APQ8064_ALTEV
	pseudo_batt_set_new(&info);
#else
	pseudo_batt_set(&info);
#endif
	ret = count;
out:
	return ret;
}
static ssize_t pseudo_batt_store_property(struct device *dev,
		struct device_attribute *attr,
		const char *buf, size_t count)
{
	int ret = -EINVAL;
	struct pseudo_batt_info_type info;

	if (sscanf(buf, "%d %d %d %d %d %d %d",
			&info.mode, &info.id, &info.therm, &info.temp,
			&info.volt, &info.capacity, &info.charging) != 7) {
		if (info.mode == 1) {
			printk(KERN_ERR "usage : echo "
				"[mode] [ID] [therm] [temp] "
				"[volt] [cap] [charging] > pseudo_batt");
			goto out;
		}
	}
	pseudo_batt_set(&info);
	ret = count;
out:
	return ret;
}