Lines Matching defs:buf
49 struct device_attribute *attr, char *buf)
53 return sprintf(buf, "%u\n", gpio_data->desired_brightness);
57 struct device_attribute *attr, const char *buf, size_t n)
63 ret = sscanf(buf, "%u", &desired_brightness);
77 struct device_attribute *attr, char *buf)
81 return sprintf(buf, "%u\n", gpio_data->inverted);
85 struct device_attribute *attr, const char *buf, size_t n)
92 ret = kstrtoul(buf, 10, &inverted);
111 struct device_attribute *attr, char *buf)
115 return sprintf(buf, "%u\n", gpio_data->gpio);
119 struct device_attribute *attr, const char *buf, size_t n)
126 ret = sscanf(buf, "%u", &gpio);