On Wed, Aug 8, 2018 at 6:31 PM, Bartosz Golaszewski <brgl@xxxxxxxx> wrote: > From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx> > > 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 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/