All of lore.kernel.org
 help / color / mirror / Atom feed
From: jim.cromie@gmail.com (Jim Cromie)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] hwmon/pc87360 as a platform driver
Date: Fri, 07 Apr 2006 23:17:55 +0000	[thread overview]
Message-ID: <4436F323.8030505@gmail.com> (raw)
In-Reply-To: <4436BE3B.7090306@gmail.com>

Juerg Haefliger wrote:
> Jim,
>
> I had a similar problem when I converted the vt1211 to a platform 
> driver. Turned out to be a bug in lm_sensors which required some I2C 
> modules to function properly. Try either loading an I2C module or use 
> the CVS version of lm_sensors.
>
> Check the following thread:
> http://lists.lm-sensors.org/pipermail/lm-sensors/2006-February/015358.html
>
> ...juerg
>
>
> On 4/7/06, *Jim Cromie* <jim.cromie at gmail.com 
> <mailto:jim.cromie at gmail.com>> wrote:
>
>     hi folks,
>
>     Ive just made a rough pass thru pc87360, and have converted it
>     to a non-working, but non-crashing platform_driver that does
>     at least a little of what it should:
>

thanks!
but alas, error-driven cut-paste will only get me so far.
More to the point, I have code similar to yours and Jean's

    data->class_dev = hwmon_device_register(&pdev->dev);

Guess I'll have to roll up my sleeves and actually figure it out.


BTW, I glanced at your patch,  saw you're :
    using sensor_attribute_2's,
    that you're using the .nr field to switch the 'functionality'
        of your combined-functionality callbacks.
   
thats all quite similar to what Im doing in these:
http://lists.lm-sensors.org/pipermail/lm-sensors/2006-March/015702.html
http://lists.lm-sensors.org/pipermail/lm-sensors/2006-March/015703.html

The SHOW_SET_*_*  constants are just a bit off-putting at first read,
but I know what you mean, and I dont have a better idea.
maybe SHOW_SETTNG_*_* ?
or SHOW_CURR_*_*,   thats confuse-able with the current reading


you can improve your printks :

s/(printk\(KERN_DEBUG)/dev_dbg\(&pdev->dev/;
s/(printk\(KERN_ERR)/dev_err\(&pdev->dev/
s/(printk\(KERN_INFO)/dev_info\(&pdev->dev/

at least where pdev has already been initd


Ill try to read thru the enire patch this weekend sometime.

thanks
jimc




  parent reply	other threads:[~2006-04-07 23:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-07 19:32 [lm-sensors] hwmon/pc87360 as a platform driver Jim Cromie
2006-04-07 19:56 ` Juerg Haefliger
2006-04-07 23:17 ` Jim Cromie [this message]
2006-04-08 10:40 ` Jean Delvare
2006-04-09  5:24 ` Juerg Haefliger

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=4436F323.8030505@gmail.com \
    --to=jim.cromie@gmail.com \
    --cc=lm-sensors@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.