Lines Matching defs:buf
199 static int lm8323_read(struct lm8323_chip *lm, u8 cmd, u8 *buf, int len)
216 ret = i2c_master_recv(lm->client, buf, len);
405 static int lm8323_read_id(struct lm8323_chip *lm, u8 *buf)
409 bytes = lm8323_read(lm, LM8323_CMD_READ_ID, buf, 2);
523 struct device_attribute *attr, char *buf)
528 return sprintf(buf, "%d\n", pwm->fade_time);
532 struct device_attribute *attr, const char *buf, size_t len)
538 ret = kstrtoint(buf, 10, &time);
545 return strlen(buf);
591 struct device_attribute *attr, char *buf)
595 return sprintf(buf, "%u\n", !lm->kp_enabled);
600 const char *buf, size_t count)
606 ret = kstrtouint(buf, 10, &i);