diff options
Diffstat (limited to 'xpp/xbus-sysfs.c')
-rw-r--r-- | xpp/xbus-sysfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xpp/xbus-sysfs.c b/xpp/xbus-sysfs.c index f136c2c..d45058e 100644 --- a/xpp/xbus-sysfs.c +++ b/xpp/xbus-sysfs.c @@ -195,13 +195,13 @@ static DEVICE_ATTR_FUNC(connector_show, dev, buf) return ret; } -static DEVICE_ATTR_FUNC(serialnum_show, dev, buf) +static DEVICE_ATTR_FUNC(label_show, dev, buf) { xbus_t *xbus; int ret; xbus = dev_to_xbus(dev); - ret = snprintf(buf, PAGE_SIZE, "%s\n", xbus->serialnum); + ret = snprintf(buf, PAGE_SIZE, "%s\n", xbus->label); return ret; } @@ -211,12 +211,12 @@ static DEVICE_ATTR_FUNC(status_show, dev, buf) int ret; xbus = dev_to_xbus(dev); - ret = snprintf(buf, PAGE_SIZE, "%s\n", (xbus->hardware_exists)?"connected":"missing"); + ret = snprintf(buf, PAGE_SIZE, "%s\n", (TRANSPORT_RUNNING(xbus))?"connected":"missing"); return ret; } static DEVICE_ATTR(connector, S_IRUGO, connector_show, NULL); -static DEVICE_ATTR(serialnum, S_IRUGO, serialnum_show, NULL); +static DEVICE_ATTR(label, S_IRUGO, label_show, NULL); static DEVICE_ATTR(status, S_IRUGO, status_show, NULL); void xbus_sysfs_remove(xbus_t *xbus) @@ -228,7 +228,7 @@ void xbus_sysfs_remove(xbus_t *xbus) astribank = &xbus->astribank; BUG_ON(!astribank); device_remove_file(&xbus->astribank, &dev_attr_status); - device_remove_file(&xbus->astribank, &dev_attr_serialnum); + device_remove_file(&xbus->astribank, &dev_attr_label); device_remove_file(&xbus->astribank, &dev_attr_connector); device_unregister(&xbus->astribank); } @@ -258,7 +258,7 @@ int xbus_sysfs_create(xbus_t *xbus) XBUS_ERR(xbus, "%s: device_create_file failed: %d\n", __FUNCTION__, ret); goto out; } - ret = device_create_file(astribank, &dev_attr_serialnum); + ret = device_create_file(astribank, &dev_attr_label); if(ret) { XBUS_ERR(xbus, "%s: device_create_file failed: %d\n", __FUNCTION__, ret); goto out; |