lkml.org 
[lkml]   [2010]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Reading temperature from another Kernel modules
Matthias Dunda wrote:
> BUT: how do I get the temp? Most of the internal functions require a
> struct device or a struct i2c_client, which - I assume - are perfectly
> provided by the kernel when going the way over the proc file system.
>
> I tried to statically save such a struct during the probing process
> (this is the above my_local_client), but this works neither. When I
> use the saved struct to call jc42_read_value, I always get a
> temperature value which is not correct at all.

Is that saved pointer actually the same? (Put printk()s in both your
function and some sysfs-called function.)


Regards,
Clemens


\
 
 \ /
  Last update: 2010-10-28 16:37    [W:0.053 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site