Amit Barzilai <[email protected]> writes: > ssd130x_write_cmd() and ssd130x_write_cmds() each carried their own > regmap_write() loop over SSD13XX_COMMAND, differing only in how the caller > supplies the bytes. > > Turn ssd130x_write_cmd() into a thin variadic wrapper that collects its > arguments into a small stack buffer and defers to ssd130x_write_cmds(), and > move the protocol comment onto the latter, which is where the loop now > lives. > > No functional change: the bytes sent and the bus transactions used to send > them are identical for every chip on both the I2C and SPI transports. > > Assisted-by: Claude:claude-opus-5 > Signed-off-by: Amit Barzilai <[email protected]> > ---
Reviewed-by: Javier Martinez Canillas <[email protected]> -- Best regards, Javier Martinez Canillas Core Platforms Red Hat
