[riot-notifications] [RIOT-OS/RIOT] drivers/ds18: refactor functions with const dev pointer (#10709)

danpetry notifications at github.com
Wed Jan 9 10:39:25 CET 2019


> The commit also follows the preferred convention that "params" is a field
in the device struct. Only the init function needs to write it.

Just a note - copying params into dev during init saves a derefencing step during runtime. I.e. it's a small optimization

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10709#issuecomment-452632687
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190109/2f965953/attachment.html>


More information about the notifications mailing list