D | main.c | 5 * SPDX-License-Identifier: Apache-2.0 31 * We need 5x(buffer size) + 1 to print a comma-separated list of each 37 static void to_display_format(const uint8_t *src, size_t size, char *dst) in to_display_format() argument 42 sprintf(dst + 5 * i, "0x%02x,", src[i]); in to_display_format() 53 i2c->name, addr); in run_full_read() 69 return -EIO; in run_full_read() 82 i2c->name, addr, offset); in run_partial_read() 92 return -EINVAL; in run_partial_read() 96 start_addr, (addr_width >> 3), i2c_buffer, TEST_DATA_SIZE-offset); in run_partial_read() 99 if (memcmp(i2c_buffer, &comp_buffer[offset], TEST_DATA_SIZE-offset)) { in run_partial_read() [all …]
|