Commit 72c6d526 authored by Pratyush Yadav's avatar Pratyush Yadav
Browse files

mtd: spi-nor: refactor read op creation to make a template op



A template of the read op will be needed in a upcoming commit. So,
refactor the code to create a read op in spi_nor_read_data() to a
separate function that returns the template of the op. The caller can
then fill in the details like address, data length, and the data buffer.
Update spi_nor_read_data() to use this template.

Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
parent 128a3608
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment