Lines Matching full:eic
36 * @eic: cached electronic identification code text
45 char eic[18]; member
164 u8 eic[8]; in eic_read() local
186 eic[2] = rx[0]; in eic_read()
187 eic[3] = rx[2]; in eic_read()
188 eic[4] = rx[4]; in eic_read()
189 eic[5] = rx[6]; in eic_read()
197 eic[0] = rx[3]; in eic_read()
198 eic[1] = rx[4]; in eic_read()
199 eic[6] = rx[0]; in eic_read()
200 eic[7] = rx[1]; in eic_read()
202 ret = snprintf(sht21->eic, sizeof(sht21->eic), "%8phN\n", eic); in eic_read()
205 sht21->eic[0] = 0; in eic_read()
214 * @buf: sysfs buffer (PAGE_SIZE) where EIC is written
216 * Will be called on read access to eic sysfs attribute.
226 ret = sizeof(sht21->eic) - 1; in eic_show()
228 if (!sht21->eic[0]) in eic_show()
231 memcpy(buf, sht21->eic, ret); in eic_show()
239 static DEVICE_ATTR_RO(eic);