<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hwmon/tmp401.c, branch linux-4.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-05-18T07:42:47Z</updated>
<entry>
<title>hwmon: (tmp401) Add OF device ID table</title>
<updated>2022-05-18T07:42:47Z</updated>
<author>
<name>Camel Guo</name>
</author>
<published>2022-05-03T11:43:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=06b88421ca8ba3e04b1c588a9656edbf2235b344'/>
<id>urn:sha1:06b88421ca8ba3e04b1c588a9656edbf2235b344</id>
<content type='text'>
[ Upstream commit 3481551f035725fdc46885425eac3ef9b58ae7b7 ]

This driver doesn't have of_match_table. This makes the kernel module
tmp401.ko lack alias patterns (e.g: of:N*T*Cti,tmp411) to match DT node
of the supported devices hence this kernel module will not be
automatically loaded.

After adding of_match_table to this driver, the folllowing alias will be
added into tmp401.ko.
$ modinfo drivers/hwmon/tmp401.ko
filename: drivers/hwmon/tmp401.ko
......
author:         Hans de Goede &lt;hdegoede@redhat.com&gt;
alias:          of:N*T*Cti,tmp435C*
alias:          of:N*T*Cti,tmp435
alias:          of:N*T*Cti,tmp432C*
alias:          of:N*T*Cti,tmp432
alias:          of:N*T*Cti,tmp431C*
alias:          of:N*T*Cti,tmp431
alias:          of:N*T*Cti,tmp411C*
alias:          of:N*T*Cti,tmp411
alias:          of:N*T*Cti,tmp401C*
alias:          of:N*T*Cti,tmp401
......

Fixes: af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF")
Signed-off-by: Camel Guo &lt;camel.guo@axis.com&gt;
Link: https://lore.kernel.org/r/20220503114333.456476-1-camel.guo@axis.com
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>hwmon: (tmp401) use smb word operations instead of 2 smb byte operations</title>
<updated>2017-01-10T17:01:32Z</updated>
<author>
<name>Jeroen De Wachter</name>
</author>
<published>2017-01-09T17:55:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=24333ac26d01aab4cee8e1c137c34b97ab294b19'/>
<id>urn:sha1:24333ac26d01aab4cee8e1c137c34b97ab294b19</id>
<content type='text'>
tmp401 separately read/wrote high and low bytes of temperature values while
the hardware supports reading/writing those values in one operation. Driver
has been modified to use word operations where possible.

Tested with a tmp432 sensor on a mips64 platform.

Signed-off-by: Jeroen De Wachter &lt;jeroen.de_wachter.ext@nokia.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (tmp401) 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:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5343aed12f262c87372c4f20b744756837240dc9'/>
<id>urn:sha1:5343aed12f262c87372c4f20b744756837240dc9</id>
<content type='text'>
Use 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: (tmp401) Add support for TI TMP461</title>
<updated>2016-06-28T01:58:03Z</updated>
<author>
<name>Andrew F. Davis</name>
</author>
<published>2016-06-08T17:00:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c0a68601804dcb4ee8a141e42e1e6893b6b0610c'/>
<id>urn:sha1:c0a68601804dcb4ee8a141e42e1e6893b6b0610c</id>
<content type='text'>
Signed-off-by: Andrew F. Davis &lt;afd@ti.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (tmp401) Do not auto-detect chip on I2C address 0x37</title>
<updated>2015-05-29T20:37:06Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2015-05-27T23:11:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9aecac04d8d89e730ae362a748113b19c06a9d39'/>
<id>urn:sha1:9aecac04d8d89e730ae362a748113b19c06a9d39</id>
<content type='text'>
I2C address 0x37 may be used by EEPROMs, which can result in false
positives. Do not attempt to detect a chip at this address.

Reviewed-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Cc: stable@vger.kernel.org # v4.0+
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (tmp401) Detect TMP435 on all addresses it supports</title>
<updated>2014-12-08T14:48:37Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2014-12-05T18:15:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=907a6d5824599d09e986105a5a880d119a996c4b'/>
<id>urn:sha1:907a6d5824599d09e986105a5a880d119a996c4b</id>
<content type='text'>
TMP435 supports a range of I2C addresses, not just 0x4c.

Cc: Patrick Titiano &lt;ptitiano@baylibre.com&gt;
Cc: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&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: (tmp401) Bail out from tmp401_probe() in case of write errors</title>
<updated>2014-12-04T19:00:44Z</updated>
<author>
<name>Bartosz Golaszewski</name>
</author>
<published>2014-12-04T16:45:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=90652efeba1a05300931b3fad53540b9bca73948'/>
<id>urn:sha1:90652efeba1a05300931b3fad53540b9bca73948</id>
<content type='text'>
The return value of i2c_smbus_read_byte_data() is checked in
tmp401_init_client(), but only a warning is printed and the device is
registered anyway. This leads to devices being registered even if they
cannot be physically detected.

Bail out from probe in case of write errors and notify the user.

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (tmp401) Add support for TI TMP435</title>
<updated>2014-12-04T18:59:42Z</updated>
<author>
<name>Patrick Titiano</name>
</author>
<published>2014-12-04T16:45:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=06adbaec2a7a3d04741557b411e264c7f9c91c85'/>
<id>urn:sha1:06adbaec2a7a3d04741557b411e264c7f9c91c85</id>
<content type='text'>
Signed-off-by: Patrick Titiano &lt;ptitiano@baylibre.com&gt;
[Bartosz Golaszewski: prepared for submission, code review fixes]
Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
[Guenter Roeck: Merged two patches into one]
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (tmp401) Convert to use devm_hwmon_device_register_with_groups</title>
<updated>2013-10-18T16:11:52Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2013-09-04T23:24:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f3643ac7ffd8bf9a3b0bac8e207529d01bebf269'/>
<id>urn:sha1:f3643ac7ffd8bf9a3b0bac8e207529d01bebf269</id>
<content type='text'>
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (tmp401) Drop redundant safety on cache lifetime</title>
<updated>2013-05-19T15:19:29Z</updated>
<author>
<name>Jean Delvare</name>
</author>
<published>2013-05-19T14:57:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4e2284d23b5124df3a039fce25093bef619731ff'/>
<id>urn:sha1:4e2284d23b5124df3a039fce25093bef619731ff</id>
<content type='text'>
time_after (as opposed to time_after_equal) already ensures that the
cache lifetime is at least as much as requested. There is no point in
manually adding another jiffy to that value, and this can confuse the
reader into wrong interpretation.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: Imre Deak &lt;imre.deak@intel.com&gt;
Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
</feed>
