nvmem: bsec: allow reads at unaligned offsets
Setting the NVMEM stride to 4 means we can't have nvmem cells pointing
at odd addresses. Linux sets it to 1 instead and handles reads at
unaligned addresses by splitting them up to aligned chunks. Copy over
the code to do the same. Unaligned writes remain illegal.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 01daf3c commit 9afc50ad2f2a9224614b51526b01974ab8e82b61
@Ahmad Fatoum Ahmad Fatoum authored on 30 Mar 2020
Sascha Hauer committed on 8 May 2020
Showing 1 changed file
View
drivers/nvmem/bsec.c