<div dir="ltr"><div><div><div><div><div>Can someone give me some pointers or tell me as to how can one use a platform driver for reading and writing?<br><br></div>For example, if i have a wm97xx codec IC, a core platform driver is provided (as on the below link). <br>
<a href="http://lxr.free-electrons.com/source/drivers/input/touchscreen/wm97xx-core.c">http://lxr.free-electrons.com/source/drivers/input/touchscreen/wm97xx-core.c</a><br><br></div>If i wanted to use this core driver to read the auxilary ADC&#39;s of wm97xx codec how do i go about using the register read, write functions or read auxiliary adc functions provided by this driver file? <br>
<br></div>I have gone through the documentation provided here <a href="http://lxr.free-electrons.com/source/Documentation/driver-model/">http://lxr.free-electrons.com/source/Documentation/driver-model/</a> but it is still not clear to me. I understand the concept of why a platform driver is required and how each device registers itself with the pseudo platform bus, but, i do not understand how to use such a driver or make my driver based on it and then use it for reading/writing. <br>
<br></div>I understand character device drivers but, i am at a loss when it comes to understand these platform drivers. I come from embedded domain and these drivers seem are ubiquitous. <br><br></div>Thanks. <br></div>