<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/hwmon/ftsteutates.c, branch linux-4.16.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.16.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.16.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2017-08-30T00:44:23+00:00</updated>
<entry>
<title>hwmon: (ftsteutates) constify i2c_device_id</title>
<updated>2017-08-30T00:44:23+00:00</updated>
<author>
<name>Arvind Yadav</name>
<email>arvind.yadav.cs@gmail.com</email>
</author>
<published>2017-08-19T19:26:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1dad2e958a0b0e402adfd1546d15e7b628ac2c5a'/>
<id>urn:sha1:1dad2e958a0b0e402adfd1546d15e7b628ac2c5a</id>
<content type='text'>
i2c_device_id are not supposed to change at runtime. All functions
working with i2c_device_id provided by &lt;linux/i2c.h&gt; work with
const i2c_device_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav &lt;arvind.yadav.cs@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (ftsteutates) Fix clearing alarm sysfs entries</title>
<updated>2017-08-13T15:24:01+00:00</updated>
<author>
<name>Thilo Cestonaro</name>
<email>thilo.cestonaro@ts.fujitsu.com</email>
</author>
<published>2017-08-03T09:43:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7576750f036b5ec913aac2a165ce75ab3b7beee3'/>
<id>urn:sha1:7576750f036b5ec913aac2a165ce75ab3b7beee3</id>
<content type='text'>
sysfs store functions should return the number of bytes written.
Returning zero results in an endless loop.

Fixes: 08426eda58e0 ("hwmon: Add driver for FTS BMC chip "Teutates"")
Signed-off-by: Thilo Cestonaro &lt;thilo.cestonaro@ts.fujitsu.com&gt;
[groeck: Clean up documentation change and description]
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (ftsteutates) Add i2c detect functionality</title>
<updated>2016-09-09T04:34:16+00:00</updated>
<author>
<name>Thilo Cestonaro</name>
<email>thilo@cestona.ro</email>
</author>
<published>2016-08-16T11:07:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2d5aee433d9c5bb6075eb42039a21c5b3728d22d'/>
<id>urn:sha1:2d5aee433d9c5bb6075eb42039a21c5b3728d22d</id>
<content type='text'>
Signed-off-by: Thilo Cestonaro &lt;thilo@cestona.ro&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (ftsteutates) Fix potential memory access error</title>
<updated>2016-07-31T22:02:51+00:00</updated>
<author>
<name>Guenter Roeck</name>
<email>linux@roeck-us.net</email>
</author>
<published>2016-07-25T22:01:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4c8702b3cd43322ca97fdc7f647e273a7388a0c6'/>
<id>urn:sha1:4c8702b3cd43322ca97fdc7f647e273a7388a0c6</id>
<content type='text'>
Using set_bit() to set a bit in an integer is not a good idea, since
the function expects an unsigned long as argument, which can be 64 bit
wide. Coverity reports this problem as

&gt;&gt;&gt;     CID 1364488:  Memory - illegal accesses  (INCOMPATIBLE_CAST)
&gt;&gt;&gt;     Pointer "&amp;ret" points to an object whose effective type is "int"
&gt;&gt;&gt;	(32 bits, signed) but is dereferenced as a wider "unsigned
+long" (64 bits, unsigned).  This may lead to memory corruption.
245                     set_bit(1, (unsigned long *)&amp;ret);

Just use BIT instead.

Cc: Thilo Cestonaro &lt;thilo@cestona.ro&gt;
Fixes: 08426eda58e0 ("hwmon: Add driver for FTS BMC chip "Teutates"")
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (ftsteutates) Remove unused including &lt;linux/version.h&gt;</title>
<updated>2016-07-20T14:12:12+00:00</updated>
<author>
<name>Wei Yongjun</name>
<email>weiyj.lk@gmail.com</email>
</author>
<published>2016-07-20T12:06:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c55374cd862e3b42831c6001cbd9d28b0e182ed4'/>
<id>urn:sha1:c55374cd862e3b42831c6001cbd9d28b0e182ed4</id>
<content type='text'>
Remove including &lt;linux/version.h&gt; that don't need it.

Signed-off-by: Wei Yongjun &lt;weiyj.lk@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: Add driver for FTS BMC chip "Teutates"</title>
<updated>2016-07-20T13:29:54+00:00</updated>
<author>
<name>Thilo Cestonaro</name>
<email>thilo@cestona.ro</email>
</author>
<published>2016-07-18T11:51:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=08426eda58e07af44aac7c9900ec8a6a62e16b2f'/>
<id>urn:sha1:08426eda58e07af44aac7c9900ec8a6a62e16b2f</id>
<content type='text'>
This driver implements hardware monitoring and watchdog support
for the FTS BMC Chip "Teutates".

Signed-off-by: Thilo Cestonaro &lt;thilo@cestona.ro&gt;
[groeck: Updated subject and description; fixed dependencies]
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
</feed>
