Re: Driver API implementation


Boie, Andrew P
 

On Fri, 2016-10-21 at 09:48 +0100, Marcus Shawcroft wrote:
Is this non const design deliberate, or an oversight? Does anyone have
objections to making the driver API machinery const, or see benefits
that out weigh the benefit of making these structures romable ?
I think this would be a good change. I can't think of use-cases where the API
structs need to be mutable at runtime.

As a side note, one drawback of the API struct approach in general is that it
confounds gc-sections. If a particular API is never used, the linker can't
figure this out as there is always at least one reference to the API -- the API
struct. I dont know of good alternatives however.

Andrew

Join devel@lists.zephyrproject.org to automatically receive all group messages.