On 3/28/23 11:05, Thomas Huth wrote:
On 28/03/2023 15.51, Stefan Berger wrote:

+
+void aspeed_i2c_writeb(uint32_t baseaddr, uint8_t slave_addr,
+                       uint8_t reg, uint8_t v)
+{
+    aspeed_i2c_write_n(baseaddr, slave_addr, reg, v, sizeof(v));
+}

For helper functions like this, I'd recommend to not use libqtest-single.h and 
rather pass in a QTestState* as parameter to use qtest_writel() and 
qtest_readl() instead. That will make the code future-proof in case someone 
wants to use these function for migration-related tests later.

Done.


  Thomas


Reply via email to