예제 #1
0
파일: sysfs.c 프로젝트: AlexShiLucky/linux
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" : "");
}
예제 #2
0
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" : "");
}