dm: sysinfo: Shorten the SYSINFO_ID prefix
We are about to add a large number of new entries. Update the prefix to be a little shorter. For SMBIOS items, use SYSID_SM_ (for System Management) which is enough to distinguish it. For now at least, it seems that most items will be for SMBIOS. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Raymond Mao <raymond.mao@linaro.org>
This commit is contained in:
@@ -151,8 +151,8 @@ static int coral_get_str(struct udevice *dev, int id, size_t size, char *val)
|
||||
return -ENOSYS;
|
||||
|
||||
switch (id) {
|
||||
case SYSINFO_ID_SMBIOS_SYSTEM_VERSION:
|
||||
case SYSINFO_ID_SMBIOS_BASEBOARD_VERSION: {
|
||||
case SYSID_SM_SYSTEM_VERSION:
|
||||
case SYSID_SM_BASEBOARD_VERSION: {
|
||||
ret = get_skuconfig(dev);
|
||||
|
||||
if (ret < 0)
|
||||
@@ -162,7 +162,7 @@ static int coral_get_str(struct udevice *dev, int id, size_t size, char *val)
|
||||
sprintf(val, "rev%d", ret);
|
||||
break;
|
||||
}
|
||||
case SYSINFO_ID_BOARD_MODEL: {
|
||||
case SYSID_BOARD_MODEL: {
|
||||
int mem_config, sku_config;
|
||||
const char *model;
|
||||
|
||||
|
Reference in New Issue
Block a user