nvmem: imx-ocotp: Pass parameters via a struct
authorBryan O'Donoghue <pure.logic@nexus-software.ie>
Tue, 24 Oct 2017 09:54:28 +0000 (10:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 13:19:05 +0000 (14:19 +0100)
commite20d2b291ba2f5441fd4aacd746c21e60d48b559
treecee4e632d2f83a62fc362cee54675baf2da27084
parent9d6a8dab8d8b94975d7d78a7866053bd1c9444ca
nvmem: imx-ocotp: Pass parameters via a struct

It will be useful in later patches to know the register access mode and
bit-shift to apply to a given input offset.

Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support")
Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp.c