On Wed, Apr 12, 2023 at 08:59:06PM +0530, Vijaya Krishna Nivarthi wrote:
On 4/6/2023 8:58 PM, Mark Brown wrote:If it's being modified won't that upset the callers that thought it was
We are modifying it, hence did cast for tx_buf onlyOr just keep byte_ptr as const - we're not modifying it are we?the tx_buf is a const void*+ if (ctrl->xfer.dir == QSPI_READ)If we need to cast to or from void * there's some sort of problem.
+ byte_ptr = (uint8_t *)xfer->rx_buf;
+ else
+ byte_ptr = (uint8_t *)xfer->tx_buf;
in v2 I will cast for tx_buf only?
const and didn't expect the data to change?