/* st33zp24_i2c_write8_reg Send byte to the TIS register according to the ST33ZP24 I2C protocol.  */
static int st33zp24_i2c_write8_reg(struct udevice *dev, u8 tpm_register, const u8 *tpm_data, size_t tpm_size)
/* st33zp24_i2c_write8_reg Send byte to the TIS register according to the ST33ZP24 I2C protocol.  */
static int st33zp24_i2c_write8_reg(struct udevice *dev, u8 tpm_register, const u8 *tpm_data, size_t tpm_size)
{
	struct tpm_chip_priv *chip_priv = dev_get_uclass_priv(dev);
	chip_priv->buf[0] = tpm_register;
	memcpy(chip_priv->buf + 1, tpm_data, tpm_size);
	return dm_i2c_write(dev, 0, chip_priv->buf, tpm_size + 1);
}