summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-st-ssc4.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2019-04-13 11:32:51 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-25 19:43:11 +0200
commit7fa5ad23dbb02fc9832ef303adbca06f425250d5 (patch)
tree02a18457fb7606231e54989b9ad87ee2fbe4af40 /drivers/spi/spi-st-ssc4.c
parentde2a3eaea552f2d562fae46bd495eb83298a1b3c (diff)
downloadlinux-7fa5ad23dbb02fc9832ef303adbca06f425250d5.tar.gz
nvmem: sunxi_sid: Dynamically allocate nvmem_config structure
The sunxi_sid driver currently uses a statically allocated nvmem_config structure that is updated at probe time. This is sub-optimal as it limits the driver to one instance, and also takes up space even if the device is not present. Modify the driver to allocate the nvmem_config structure at probe time, plugging in the desired parameters along the way. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/spi/spi-st-ssc4.c')
0 files changed, 0 insertions, 0 deletions