nvmem: core: add nvmem_device_find
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Thu, 3 Oct 2019 09:52:29 +0000 (11:52 +0200)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:47:37 +0000 (09:47 -0700)
commit8c2a2b8c2ff680b1d0f715cf1f320722b762f9dd
treef7949434fae354eca578fc9e5faa6ba17a9b334f
parent24b0cb4f883adc92689a336800495838fdfa4763
nvmem: core: add nvmem_device_find

nvmem_device_find provides a way to search for nvmem devices with
the help of a match function simlair to bus_find_device.

Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: linux-doc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: linux-rtc@vger.kernel.org
Cc: linux-serial@vger.kernel.org
Documentation/driver-api/nvmem.rst
drivers/nvmem/core.c
include/linux/nvmem-consumer.h