platform深入

最简范例

驱动代码

设备信息

设备信息有是三种提供方式

1.通过platform_device模块提供设备信息:

2.通过平台文件提供设备信息:

3.通过设备树提供设备信息:

靠设备树来提供:

源码下载: https://git.coding.net/xxgui1992/LinuxDriver-test.git

posted @ 2017-02-04 20:36  云鹤比天  阅读(120)  评论(0)    收藏  举报