nvmem: core: add nvmem_cell_read_u16
authorFabrice Gasnier <fabrice.gasnier@st.com>
Sat, 13 Apr 2019 10:32:57 +0000 (11:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 17:43:12 +0000 (19:43 +0200)
commit0a9b2d1ce42210d087d32b1979d3ada343537708
treea30eb5aac596803d9a18e70c687c11d6071ca657
parent7c1cd8fda8fbcc3701f372003ef0a3b6d31e11f4
nvmem: core: add nvmem_cell_read_u16

Add nvmem_cell_read_u16() helper to ease read of an u16 value on consumer
side. This is inspired by nvmem_cell_read_u32() function.
This helper is useful on stm32 that has 16 bits data cells stored in non
volatile memory.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c
include/linux/nvmem-consumer.h