mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
ARM: rockchip: cpu.c support export cpu version
This commit is contained in:
@@ -28,6 +28,10 @@ static ssize_t type_show(struct device *dev, struct device_attribute *attr, char
|
||||
else
|
||||
type = "";
|
||||
|
||||
if (rockchip_get_cpu_version())
|
||||
return sprintf(buf, "%sv%lu\n", type,
|
||||
rockchip_get_cpu_version());
|
||||
|
||||
return sprintf(buf, "%s\n", type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user