static ssize_t type_show(struct device *dev,
			 struct device_attribute *attr, char *buf)
{
	struct cacheinfo *this_leaf = dev_get_drvdata(dev);

	switch (this_leaf->type) {
	case CACHE_TYPE_DATA:
		return sysfs_emit(buf, "Data\n");
	case CACHE_TYPE_INST:
		return sysfs_emit(buf, "Instruction\n");
	case CACHE_TYPE_UNIFIED:
		return sysfs_emit(buf, "Unified\n");
	default:
		return -EINVAL;
	}
}
static ssize_t type_show(struct device *dev,
			 struct device_attribute *attr, char *buf)
{
	struct cacheinfo *this_leaf = dev_get_drvdata(dev);

	switch (this_leaf->type) {
	case CACHE_TYPE_DATA:
		return sysfs_emit(buf, "Data\n");
	case CACHE_TYPE_INST:
		return sysfs_emit(buf, "Instruction\n");
	case CACHE_TYPE_UNIFIED:
		return sysfs_emit(buf, "Unified\n");
	default:
		return -EINVAL;
	}
}