History

nvmem: core: add support to auto devid

For nvmem providers which have multiple instances, it is required to suffix the provider name with proper id, so that they do not confict for the same name. Currently the core does not handle this case properly eventhough core already has logic to generate the id. This patch add new devid type NVMEM_DEVID_AUTO for providers to be able to allow core to assign id and append it to provier name.

Srinivas Kandagatla committed 6 years ago

Commit 731aa3f1 parent 5037d362 files · +11 −2Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/nvmem-provider.h+3−0
@@ -27,6 +27,9 @@ enum nvmem_type { · 26 unmodified lines
2727 NVMEM_TYPE_BATTERY_BACKED,
2828 };
2929
30+#define NVMEM_DEVID_NONE (-1)
31+#define NVMEM_DEVID_AUTO (-2)
32+
3033 /**
3134 * struct nvmem_config - NVMEM device configuration
3235 *