Thread (54 messages) 54 messages, 6 authors, 2018-08-10

Re: [PATCH 04/28] nvmem: provide nvmem_device_name()

From: Andy Shevchenko <hidden>
Date: 2018-08-08 17:42:46
Also in: linux-arm-kernel, linux-i2c, linux-omap, lkml, netdev

On Wed, Aug 8, 2018 at 6:31 PM, Bartosz Golaszewski [off-list ref] wrote:
From: Bartosz Golaszewski <redacted>

Kernel users don't have any means of checking the names of nvmem
devices. Add a routine that returns the name of the nvmem provider.

This will be useful for nvmem notifier subscribers - otherwise they
can't check what device is being added/removed.
+const char *nvmem_device_name(struct nvmem_device *nvmem)
+{
+       return dev_name(&nvmem->dev);
+}
+EXPORT_SYMBOL_GPL(nvmem_device_name);
Just wondering if *_dev_name() is more common pattern in the kernel
(at least pci_dev_name() comes immediately to mind).


-- 
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help