From 7267dc1014115309b021ae7764643fd00f3b3ed5 Mon Sep 17 00:00:00 2001 From: Patricio Whittingslow Date: Sun, 9 Nov 2025 12:26:53 -0300 Subject: [PATCH] change method name --- internal/regmap/device8tx.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/regmap/device8tx.go b/internal/regmap/device8tx.go index 3ce199d..433efb8 100644 --- a/internal/regmap/device8tx.go +++ b/internal/regmap/device8tx.go @@ -35,12 +35,12 @@ type Device8Txer struct { inTx bool // Tracks whether a transaction is currently active } -// SetBuffers configures the write and read buffers for this device. +// SetTxBuffers configures the write and read buffers for this device. // These buffers are reused across transactions to avoid heap allocations. // // The writebuf should be large enough to hold the register address plus // all data bytes to be written in a single transaction. -func (d *Device8Txer) SetBuffers(writebuf, readbuf []byte) { +func (d *Device8Txer) SetTxBuffers(writebuf, readbuf []byte) { d.readBuf = readbuf d.writeBuf = writebuf }