<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hwmon/emc2103.c, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-12-16T23:13:44Z</updated>
<entry>
<title>hwmon: (emc2103) Use permission specific SENSOR[_DEVICE]_ATTR variants</title>
<updated>2018-12-16T23:13:44Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2018-12-10T22:02:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=94bf70da8ac3f815411a24a6ca42e7327c4a4bbb'/>
<id>urn:sha1:94bf70da8ac3f815411a24a6ca42e7327c4a4bbb</id>
<content type='text'>
Use SENSOR[_DEVICE]_ATTR[_2]_{RO,RW,WO} to simplify the source code,
to improve readbility, and to reduce the chance of inconsistencies.

Also replace any remaining S_&lt;PERMS&gt; in the driver with octal values.

The conversion was done automatically with coccinelle. The semantic patches
and the scripts used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches/hwmon/.

This patch does not introduce functional changes. It was verified by
compiling the old and new files and comparing text and data sizes.

Cc: Steve Glendinning &lt;steve.glendinning@shawell.net&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (emc2103) use permission-specific DEVICE_ATTR variants</title>
<updated>2017-01-02T18:19:45Z</updated>
<author>
<name>Julia Lawall</name>
</author>
<published>2016-12-22T12:05:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4cd0183dcf2a9be3338acda63fc4b745f6ef587e'/>
<id>urn:sha1:4cd0183dcf2a9be3338acda63fc4b745f6ef587e</id>
<content type='text'>
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for
read/write attributes. This simplifies the source code, improves
readbility, and reduces the chance of inconsistencies.

The conversion was done automatically using coccinelle. It was validated
by compiling both the old and the new source code and comparing its text,
data, and bss size.

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
[groeck: Updated description]
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (emc2103) Fix overflows seen when temperature limit attributes</title>
<updated>2016-12-12T19:33:43Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-12-05T02:19:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca1b10b8250247fb5f241d1cb894c102203378bb'/>
<id>urn:sha1:ca1b10b8250247fb5f241d1cb894c102203378bb</id>
<content type='text'>
Writes into temperature limit attributes can overflow due to unbound
values passed to DIV_ROUND_CLOSEST().

Cc: Steve Glendinning &lt;steve.glendinning@shawell.net&gt;
Reviewed-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (emc2103) Fix typo in MODULE_PARM_DESC</title>
<updated>2016-05-26T09:06:53Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2016-05-26T09:06:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=54f0ffc4e249b7f7e7fffb10c83e8de99aca839c'/>
<id>urn:sha1:54f0ffc4e249b7f7e7fffb10c83e8de99aca839c</id>
<content type='text'>
"apd" was intended here instead of "init".

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Jean Delvare &lt;jdelvare@suse.de&gt;
</content>
</entry>
<entry>
<title>hwmon: (emc2103) Convert to devm_hwmon_device_register_with_groups</title>
<updated>2014-08-04T14:01:40Z</updated>
<author>
<name>Axel Lin</name>
</author>
<published>2014-07-19T14:52:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9dd304f86b4b1921c0b7601b3e88a07b257fc2d2'/>
<id>urn:sha1:9dd304f86b4b1921c0b7601b3e88a07b257fc2d2</id>
<content type='text'>
Use devm_hwmon_device_register_with_groups() to simplify the code a bit.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (emc2103) Clamp limits instead of bailing out</title>
<updated>2014-07-07T14:15:31Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2014-07-06T18:39:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f6c2dd20108c35e30e2c1f3c6142d189451a626b'/>
<id>urn:sha1:f6c2dd20108c35e30e2c1f3c6142d189451a626b</id>
<content type='text'>
It is customary to clamp limits instead of bailing out with an error
if a configured limit is out of the range supported by the driver.
This simplifies limit configuration, since the user will not typically
know chip and/or driver specific limits.

Reviewed-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (emc2103) Return error from i2c_smbus_read_byte_data</title>
<updated>2014-03-03T16:01:04Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2014-02-12T05:34:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9bf3babf3f6e70723528bece564c57d38d534652'/>
<id>urn:sha1:9bf3babf3f6e70723528bece564c57d38d534652</id>
<content type='text'>
There is no reason to replace one error with another.

smatch message:
drivers/hwmon/emc2103.c:352 set_fan_div() info: why not propagate 'status'
from i2c_smbus_read_byte_data() instead of (-5)?

Reviewed-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (emc2103) Fix return value</title>
<updated>2013-09-11T20:01:31Z</updated>
<author>
<name>Sachin Kamat</name>
</author>
<published>2013-09-11T04:19:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1a3abbd0b9a16e40fd4718f99896c437a193c0a1'/>
<id>urn:sha1:1a3abbd0b9a16e40fd4718f99896c437a193c0a1</id>
<content type='text'>
kstrtol() returns appropriate error values. Use those instead of
hardcoding. Silences several sparse messages of following type:
"why not propagate 'result' from kstrtol() instead of (-22)?"

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Cc: Steve Glendinning &lt;steve.glendinning@shawell.net&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: Replace SENSORS_LIMIT with clamp_val</title>
<updated>2013-01-26T05:03:54Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2013-01-09T16:09:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2a844c148e1f714ebf42cb96e1b172ce394c36c9'/>
<id>urn:sha1:2a844c148e1f714ebf42cb96e1b172ce394c36c9</id>
<content type='text'>
SENSORS_LIMIT and the generic clamp_val have the same functionality,
and clamp_val is more efficient.

This patch reduces text size by 9052 bytes and bss size by 11624 bytes
for x86_64 builds.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Acked-by: George Joseph &lt;george.joseph@fairview5.com&gt;
Acked-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>hwmon: (emc2103) Convert to use devm_ functions</title>
<updated>2012-09-24T04:08:31Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2012-06-02T16:58:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=59da32d8dfd991fedc0bad197fb6f6a79bb9e712'/>
<id>urn:sha1:59da32d8dfd991fedc0bad197fb6f6a79bb9e712</id>
<content type='text'>
Convert to use devm_ functions to reduce code size and simplify the code.

Cc: Steve Glendinning &lt;steve.glendinning@smsc.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
</feed>
