public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Matthias Dunda <user254@t1817.greatnet.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Reading temperature from another Kernel modules
Date: Thu, 28 Oct 2010 16:35:40 +0200	[thread overview]
Message-ID: <4CC98A3C.5010903@ladisch.de> (raw)
In-Reply-To: <007FBA04-E52D-497B-A43B-738F15E33558@t1817.greatnet.de>

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

      reply	other threads:[~2010-10-28 14:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26  9:01 Reading temperature from another Kernel modules Matthias Dunda
2010-10-28 14:35 ` Clemens Ladisch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CC98A3C.5010903@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=user254@t1817.greatnet.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox