Re: Question on Platform Device/Driver

2013-11-11 Thread sanchayan maity
A call to one of those functions would require a valid wm97xx structure as input to those functions. How am i suppose to get a valid pointer to the structure which is required by the function, if i am going to use it in a read function provided by the file operations structure of the char driver?

Re: Question on Platform Device/Driver

2013-11-10 Thread anish singh
On Nov 10, 2013 4:20 AM, "sanchayan maity" wrote: > > @Peter > > Yes, i have read that. It says directly addressable but it's not like i can access those addresses straight from user space. So how do i access them . In the above case how do i access the register of the wm97 codec ic which is on an

Re: Question on Platform Device/Driver

2013-11-10 Thread sanchayan maity
@Peter Yes, i have read that. It says directly addressable but it's not like i can access those addresses straight from user space. So how do i access them . In the above case how do i access the register of the wm97 codec ic which is on an AC97 bus? @Anish Yes, wm97xx-core is a touch driver fal

Re: Question on Platform Device/Driver

2013-11-09 Thread anish singh
On Nov 9, 2013 4:18 AM, "sanchayan maity" wrote: > > Can someone give me some pointers or tell me as to how can one use a platform driver for reading and writing? > > For example, if i have a wm97xx codec IC, a core platform driver is provided (as on the below link). > http://lxr.free-electrons.co

Question on Platform Device/Driver

2013-11-09 Thread sanchayan maity
Can someone give me some pointers or tell me as to how can one use a platform driver for reading and writing? For example, if i have a wm97xx codec IC, a core platform driver is provided (as on the below link). http://lxr.free-electrons.com/source/drivers/input/touchscreen/wm97xx-core.c If i want