发布时间:2015-07-01 01:12:26
1. 分配一个i2c_driver结构体。
2. 设置attach_adapter,设置detach_clien。
attach_adapter调用i2c_probe(),3.0内核:static int i2c_probe(struct ipath_devdata *dd, int devaddr)
detach_client:如果之前发现有设备,那么现在要清除它。......【阅读全文】
发布时间:2015-06-27 11:04:40
<br /><div><div class="codeheads"><p>点击(<span style="cursor:pointer;color:red;" onclick="code_hide('code882')">此处</span>)折叠或打开</p></div><div id="code882" class="codeText"><ol style="margin:0 1px 0 0px;padding-left:40px;" start="1" class="dp-css"><li><span style=.........【阅读全文】