From: Jean Delvare <jdelvare@suse.de>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Guenter Roeck <linux@roeck-us.net>,
linux-kernel@vger.kernel.org, Fenghua Yu <fenghua.yu@intel.com>,
linux-hwmon@vger.kernel.org
Subject: Re: userspace regression with hwmon
Date: Tue, 27 Jun 2017 15:34:03 +0200 [thread overview]
Message-ID: <20170627153403.18f1f09e@endymion> (raw)
In-Reply-To: <5ce4bea5-008a-8a86-cdf4-83d0f427126c@roeck-us.net>
On Tue, 27 Jun 2017 05:52:39 -0700, Guenter Roeck wrote:
> On 06/27/2017 05:23 AM, Sudip Mukherjee wrote:
> > Well, using the raw platform device path was a bad design decision.
> > But I still see a difference. In v3.8 all the temp* nodes were in
> > /sys/class/hwmon/hwmon0/device/ but in v4.4 I can see that they are in
> > /sys/class/hwmon/hwmon0/. So if we do modify the code, then we still
> > need to have two versions of userspace code based on the kernel.
>
> Your code should check for the 'name' attribute in both locations.
... as libsensors does. If you just do what libsensors does, you'll be
on the safe side.
--
Jean Delvare
SUSE L3 Support
prev parent reply other threads:[~2017-06-27 13:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-26 14:33 userspace regression with hwmon Sudip Mukherjee
2017-06-26 17:06 ` Guenter Roeck
2017-06-27 12:23 ` Sudip Mukherjee
2017-06-27 12:52 ` Guenter Roeck
2017-06-27 13:34 ` Jean Delvare [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=20170627153403.18f1f09e@endymion \
--to=jdelvare@suse.de \
--cc=fenghua.yu@intel.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=sudipm.mukherjee@gmail.com \
/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.