Lines Matching defs:buf
176 struct device_attribute *attr, char *buf)
180 return sprintf(buf, "%u\n", data->power_state);
184 struct device_attribute *attr, const char *buf, size_t count)
188 unsigned long val = simple_strtoul(buf, NULL, 10);
208 struct device_attribute *attr, char *buf)
212 return sprintf(buf, "%u\n", data->operating_mode);
216 struct device_attribute *attr, const char *buf, size_t count)
220 unsigned long val = simple_strtoul(buf, NULL, 10);
242 static ssize_t __tsl2550_show_lux(struct i2c_client *client, char *buf)
265 return sprintf(buf, "%d\n", ret);
269 struct device_attribute *attr, char *buf)
280 ret = __tsl2550_show_lux(client, buf);