[PATCH v2 0/4] nvmem: layouts: Create a macro to register drivers

From: Miquel Raynal
Date: Wed Mar 22 2023 - 12:58:12 EST


Hello Srinivas,

Following your former review, here are a few changes creating and using
a macro to simplify nvmem layout driver registration.

While doing that I figured out the MODULE_ALIAS() macro in the Onie TLV
driver was useless and wrong, so there is a patch to drop it, but if you
wish you can also squash it with:
"nvmem: layouts: onie-tlv: Add new layout driver".

Thanks!
Miquèl

Changes in v2:
* First patch now includes driver.h as reported by Rafal.

Miquel Raynal (4):
nvmem: Add macro to register nvmem layout drivers
nvmem: layouts: sl28vpd: Use module_nvmem_layout_driver()
nvmem: layouts: onie-tlv: Use module_nvmem_layout_driver()
nvmem: layouts: onie-tlv: Drop wrong module alias

drivers/nvmem/layouts/onie-tlv.c | 15 +--------------
drivers/nvmem/layouts/sl28vpd.c | 14 +-------------
include/linux/nvmem-provider.h | 6 ++++++
3 files changed, 8 insertions(+), 27 deletions(-)

--
2.34.1