October 2017
Intermediate to advanced
586 pages
14h 8m
English
If your driver expects platform data, you should check the dev.platform_data pointer. A non-null value means your driver has been instantiated the old way in the board configuration file, and DTs do not enter into it. For drivers instantiated from a DT, dev.platform_data will be NULL, and your platform device will be given a pointer on the DT entry (node) that corresponds to your device in the dev.of_node pointer, from which you can extract the resource and use the OF API to parse and extract application data.
Read now
Unlock full access