Re: [PATCH v7 5/7] nvmem: core: Rework layouts to become platform devices
From: Dan Carpenter
Date: Fri Aug 04 2023 - 12:05:31 EST
On Fri, Aug 04, 2023 at 05:46:25PM +0200, Miquel Raynal wrote:
> Actually of_nvmem_layout_get_container() already returns NULL if
> CONFIG_OF is not defined. This helper returns either a valid pointer of
> NULL. Where can it return an error pointer?
This is from linux-next.
include/linux/nvmem-consumer.h
256 static inline struct device_node *
257 of_nvmem_layout_get_container(struct nvmem_device *nvmem)
258 {
259 return ERR_PTR(-EOPNOTSUPP);
260 }
261 #endif /* CONFIG_NVMEM && CONFIG_OF */
regards,
dan carpenter