[PATCH v3 1/1] nvmem: Change return type of reg read/write to ssize_t

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Fri May 10 03:11:21 PDT 2024


Il 10/05/24 10:29, Joy Chakraborty ha scritto:
> Change return type of reg_read() and reg_write() callback to ssize_t for
> nvmem suppliers to return number of bytes read/written to the nvmem core.
> 
> Currently nvmem core assumes the amount of data read/written is equal
> to what it has requested from the supplier, this return code facilitates
> better error handling in the nvmem core.
> 
> Signed-off-by: Joy Chakraborty <joychakr at google.com>

For MediaTek:

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>





More information about the Linux-mediatek mailing list