/* st33zp24_spi_recv Recv byte from the TIS register according to the ST33ZP24 SPI protocol.  */
static int st33zp24_spi_read(struct udevice *dev, u8 tpm_register, u8 *tpm_data, size_t tpm_size)
/* st33zp24_spi_recv Recv byte from the TIS register according to the ST33ZP24 SPI protocol.  */
static int st33zp24_spi_read(struct udevice *dev, u8 tpm_register, u8 *tpm_data, size_t tpm_size)
{
	int ret;
	ret = st33zp24_spi_read8_reg(dev, tpm_register, tpm_data, tpm_size);
	if (!st33zp24_spi_status_to_errno(ret))
		return tpm_size;
	return ret;
}