Re: Device driver configuration and driver_data distinction.
Marcus Shawcroft <marcus.shawcroft@...>
Hi,
On 6 October 2016 at 17:55, Marcus Shawcroft <marcus.shawcroft(a)gmail.com> wrote: Switching to const config_info will require the following:All of the patches to achieve the above are all now on gerrit, most have been merged already. .. with the exception of the DW PWM driver, which so far as I can tell does not compile for any board at this point in time, https://jira.zephyrproject.org/browse/ZEP-1040. Is there a board that this driver should work for? 5) Update device {} to make config_info constOnce the above patches have been merged I'll post this one line patch. Once this patch is applied all new drivers will need to consume their config_info via a const * or they will get a build error. 6) Update all ~60 odd drivers to add const to their config structureFollowed by these patches, 1 per driver, these patches are trivial, they literally just add const to each definition of a drivers config structure. Cheers /Marcus
|
|