static ssize_t state_show(struct device *dev, struct device_attribute *attr, char *buf) { bool state = dim2_sysfs_get_state_cb(); return sprintf(buf, "%s\n", state ? "locked" : ""); }
static ssize_t state_show(struct medialb_bus *bus, char *buf) { bool state = dim2_sysfs_get_state_cb(); return sprintf(buf, "%s\n", state ? "locked" : ""); }