<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/hwmon/pc87360.c, branch v3.4.34</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>hwmon: (pc87360) Fix: do not use assignment in if condition</title>
<updated>2012-03-19T01:27:27+00:00</updated>
<author>
<name>Guenter Roeck</name>
<email>linux@roeck-us.net</email>
</author>
<published>2012-01-20T04:50:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=bce2778df9ea32146d59344c027001e270911f4b'/>
<id>bce2778df9ea32146d59344c027001e270911f4b</id>
<content type='text'>
Fix checkpatch issue:
ERROR: do not use assignment in if condition

Replace repeated calls to device_create_file() with calls to sysfs_create_group.

Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix checkpatch issue:
ERROR: do not use assignment in if condition

Replace repeated calls to device_create_file() with calls to sysfs_create_group.

Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (pc87360) Fix checkpatch issues</title>
<updated>2012-03-19T01:27:26+00:00</updated>
<author>
<name>Guenter Roeck</name>
<email>linux@roeck-us.net</email>
</author>
<published>2012-01-15T05:49:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=449a7a0720f2edc84288fb239bca8b2f9366881d'/>
<id>449a7a0720f2edc84288fb239bca8b2f9366881d</id>
<content type='text'>
Fixed:
ERROR: code indent should use tabs where possible
ERROR: do not use assignment in if condition
ERROR: "foo * bar" should be "foo *bar"
ERROR: space required after that ',' (ctx:VxV)
ERROR: spaces required around that ':' (ctx:VxE)
ERROR: spaces required around that '==' (ctx:VxV)
WARNING: braces {} are not necessary for single statement blocks
WARNING: line over 80 characters
WARNING: please, no space before tabs
WARNING: please, no spaces at the start of a line
WARNING: simple_strtol is obsolete, use kstrtol instead
WARNING: simple_strtoul is obsolete, use kstrtoul instead

Not or not all fixed (code complexity):
ERROR: Macros with complex values should be enclosed in parenthesis
ERROR: do not use assignment in if condition

Cc: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed:
ERROR: code indent should use tabs where possible
ERROR: do not use assignment in if condition
ERROR: "foo * bar" should be "foo *bar"
ERROR: space required after that ',' (ctx:VxV)
ERROR: spaces required around that ':' (ctx:VxE)
ERROR: spaces required around that '==' (ctx:VxV)
WARNING: braces {} are not necessary for single statement blocks
WARNING: line over 80 characters
WARNING: please, no space before tabs
WARNING: please, no spaces at the start of a line
WARNING: simple_strtol is obsolete, use kstrtol instead
WARNING: simple_strtoul is obsolete, use kstrtoul instead

Not or not all fixed (code complexity):
ERROR: Macros with complex values should be enclosed in parenthesis
ERROR: do not use assignment in if condition

Cc: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (pc87360) Fix multi-line comments</title>
<updated>2012-03-19T01:26:56+00:00</updated>
<author>
<name>Guenter Roeck</name>
<email>linux@roeck-us.net</email>
</author>
<published>2012-01-19T19:02:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3af2861e8b80676d32c5498f9ac1b2de70d3e19b'/>
<id>3af2861e8b80676d32c5498f9ac1b2de70d3e19b</id>
<content type='text'>
Cc: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Acked-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cc: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Acked-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (pc87360) Use pr_fmt and pr_&lt;level&gt;</title>
<updated>2011-01-12T20:55:11+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2011-01-12T20:55:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9e991c6fad4618a9158437f1f650225f9ec485c3'/>
<id>9e991c6fad4618a9158437f1f650225f9ec485c3</id>
<content type='text'>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_&lt;level&gt;
Coalesced any long formats
Removed prefixes from formats

[JD: Also convert debug messages]

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added #define pr_fmt KBUILD_MODNAME ": " fmt
Converted printks to pr_&lt;level&gt;
Coalesced any long formats
Removed prefixes from formats

[JD: Also convert debug messages]

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (pc87360) Fix device resource declaration</title>
<updated>2010-08-14T19:08:48+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2010-08-14T19:08:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b9783dcebe952bf73449fe70a19ee4814adc81a0'/>
<id>b9783dcebe952bf73449fe70a19ee4814adc81a0</id>
<content type='text'>
It's not OK to call platform_device_add_resources() multiple times
in a row. Despite its name, this functions sets the resources, it
doesn't add them. So we have to prepare an array with all the
resources, and then call platform_device_add_resources() once.

Before this fix, only the last I/O resource would be actually
registered. The other I/O resources were leaked.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: stable@kernel.org
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's not OK to call platform_device_add_resources() multiple times
in a row. Despite its name, this functions sets the resources, it
doesn't add them. So we have to prepare an array with all the
resources, and then call platform_device_add_resources() once.

Before this fix, only the last I/O resource would be actually
registered. The other I/O resources were leaked.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: stable@kernel.org
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: Include &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;</title>
<updated>2009-09-15T15:18:13+00:00</updated>
<author>
<name>H Hartley Sweeten</name>
<email>hartleys@visionengravers.com</email>
</author>
<published>2009-09-15T15:18:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6055fae8aceee41471edfd1876e5617d16e028fe'/>
<id>6055fae8aceee41471edfd1876e5617d16e028fe</id>
<content type='text'>
Drivers should be including &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;.

Signed-off-by: H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
Cc: Alistair John Strachan &lt;alistair@devzero.co.uk&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Cc: Juerg Haefliger &lt;juergh@gmail.com&gt;
Cc: Frank Seidel &lt;frank@f-seidel.de&gt;
Acked-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: "Mark M. Hoffman" &lt;mhoffman@lightlink.com&gt;
Cc: Roger Lucas &lt;vt8231@hiddenengine.co.uk&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Drivers should be including &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;.

Signed-off-by: H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
Cc: Alistair John Strachan &lt;alistair@devzero.co.uk&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Cc: Juerg Haefliger &lt;juergh@gmail.com&gt;
Cc: Frank Seidel &lt;frank@f-seidel.de&gt;
Acked-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: "Mark M. Hoffman" &lt;mhoffman@lightlink.com&gt;
Cc: Roger Lucas &lt;vt8231@hiddenengine.co.uk&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: Check for ACPI resource conflicts</title>
<updated>2009-01-07T15:37:35+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>jdelvare@suse.de</email>
</author>
<published>2009-01-07T15:37:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b9acb64a385c5b26fc392e0d58ac7b8e0a2cd812'/>
<id>b9acb64a385c5b26fc392e0d58ac7b8e0a2cd812</id>
<content type='text'>
Check for ACPI resource conflicts in hwmon drivers. I've included
all Super-I/O and PCI drivers.

I've voluntarily left out:
* Vendor-specific drivers: if they conflicted on any system, this would
  pretty much mean that they conflict on all systems, and we would know
  by now.
* Legacy ISA drivers (lm78 and w83781d): they only support chips found
  on old designs were ACPI either wasn't supported or didn't deal with
  thermal management.
* Drivers accessing the I/O resources indirectly (e.g. through SMBus):
  the checks are already done where they belong, i.e. in the bus drivers.

Signed-off-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Acked-by: David Hubbard &lt;david.c.hubbard@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Check for ACPI resource conflicts in hwmon drivers. I've included
all Super-I/O and PCI drivers.

I've voluntarily left out:
* Vendor-specific drivers: if they conflicted on any system, this would
  pretty much mean that they conflict on all systems, and we would know
  by now.
* Legacy ISA drivers (lm78 and w83781d): they only support chips found
  on old designs were ACPI either wasn't supported or didn't deal with
  thermal management.
* Drivers accessing the I/O resources indirectly (e.g. through SMBus):
  the checks are already done where they belong, i.e. in the bus drivers.

Signed-off-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Acked-by: David Hubbard &lt;david.c.hubbard@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon/pc87360 separate alarm files: add therm-min/max/crit-alarms</title>
<updated>2008-10-20T15:52:35+00:00</updated>
<author>
<name>Jim Cromie</name>
<email>jim.cromie@gmail.com</email>
</author>
<published>2008-10-19T03:27:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=865c295360f61c2f3634fb1387b4468fdc8287da'/>
<id>865c295360f61c2f3634fb1387b4468fdc8287da</id>
<content type='text'>
Adds therm-min/max/crit-alarm callbacks, sensor-device-attribute
declarations, and refs to those new decls in the macro used to initialize
the therm_group (of sysfs files)

The thermistors use voltage channels to measure; so they don't have a
fault-alarm, but unlike the other voltages, they do have an overtemp,
which we call crit (by convention).

[akpm@linux-foundation.org: cleanup]
Signed-off-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: "Mark M. Hoffman" &lt;mhoffman@lightlink.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds therm-min/max/crit-alarm callbacks, sensor-device-attribute
declarations, and refs to those new decls in the macro used to initialize
the therm_group (of sysfs files)

The thermistors use voltage channels to measure; so they don't have a
fault-alarm, but unlike the other voltages, they do have an overtemp,
which we call crit (by convention).

[akpm@linux-foundation.org: cleanup]
Signed-off-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: "Mark M. Hoffman" &lt;mhoffman@lightlink.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon/pc87360 separate alarm files: add dev_dbg help</title>
<updated>2008-10-20T15:52:35+00:00</updated>
<author>
<name>Jim Cromie</name>
<email>jim.cromie@gmail.com</email>
</author>
<published>2008-10-19T03:27:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8ca136741e15e8546e787ae92a7f4aeca84be494'/>
<id>8ca136741e15e8546e787ae92a7f4aeca84be494</id>
<content type='text'>
temp and vin status register values may be set by chip specifications, set
again by bios, or by this previously loaded driver.  Debug output nicely
displays modprobe init=\d actions.

Signed-off-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: "Mark M. Hoffman" &lt;mhoffman@lightlink.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
temp and vin status register values may be set by chip specifications, set
again by bios, or by this previously loaded driver.  Debug output nicely
displays modprobe init=\d actions.

Signed-off-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: "Mark M. Hoffman" &lt;mhoffman@lightlink.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon/pc87360 separate alarm files: define LDNI_MAX const</title>
<updated>2008-10-20T15:52:35+00:00</updated>
<author>
<name>Jim Cromie</name>
<email>jim.cromie@gmail.com</email>
</author>
<published>2008-10-19T03:27:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2a32ec2500514109754e07721d9d5d431a706a31'/>
<id>2a32ec2500514109754e07721d9d5d431a706a31</id>
<content type='text'>
Driver handles 3 logical devices in fixed length array.  Give this a
define-d constant.

Signed-off-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: "Mark M. Hoffman" &lt;mhoffman@lightlink.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Driver handles 3 logical devices in fixed length array.  Give this a
define-d constant.

Signed-off-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: "Mark M. Hoffman" &lt;mhoffman@lightlink.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
