<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hwmon/max6650.c, branch linux-5.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-01-28T01:44:18Z</updated>
<entry>
<title>hwmon: (max6650) Switch to using the new API kobj_to_dev()</title>
<updated>2021-01-28T01:44:18Z</updated>
<author>
<name>Tian Tao</name>
</author>
<published>2020-12-31T01:03:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1fc688c65fd3abe058420c785276c81d4a9c66e'/>
<id>urn:sha1:f1fc688c65fd3abe058420c785276c81d4a9c66e</id>
<content type='text'>
Switch to using the new API kobj_to_dev() to fix the below warnning:
drivers/hwmon/max6650.c:324:60-61: WARNING opportunity for
kobj_to_dev().

Signed-off-by: Tian Tao &lt;tiantao6@hisilicon.com&gt;
Link: https://lore.kernel.org/r/1609376621-46463-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: use simple i2c probe function</title>
<updated>2020-09-23T16:42:39Z</updated>
<author>
<name>Stephen Kitt</name>
</author>
<published>2020-08-13T16:02:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6748703856d461f8cd62b72ebca51040e06cb310'/>
<id>urn:sha1:6748703856d461f8cd62b72ebca51040e06cb310</id>
<content type='text'>
Many hwmon drivers don't use the id information provided by the old
i2c probe function, and the remainder can easily be adapted to the new
form ("probe_new") by calling i2c_match_id explicitly.

This avoids scanning the identifier tables during probes.

Drivers which didn't use the id are converted as-is; drivers which did
are modified as follows:

* if the information in i2c_client is sufficient, that's used instead
  (client-&gt;name);
* anything else is handled by calling i2c_match_id() with the same
  level of error-handling (if any) as before.

A few drivers aren't included in this patch because they have a
different set of maintainers. They will be covered by other patches.

Signed-off-by: Stephen Kitt &lt;steve@sk2.org&gt;
Link: https://lore.kernel.org/r/20200813160222.1503401-1-steve@sk2.org
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (max6650) Fix unused variable warning</title>
<updated>2019-06-24T01:33:01Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2019-06-17T12:34:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3253854dc19f1610b8d01fb9265bbd98ce18abd7'/>
<id>urn:sha1:3253854dc19f1610b8d01fb9265bbd98ce18abd7</id>
<content type='text'>
The newly added variable is only used in an #if block:

drivers/hwmon/max6650.c: In function 'max6650_probe':
drivers/hwmon/max6650.c:766:33: error: unused variable 'cooling_dev' [-Werror=unused-variable]

Change the #if to if() so the compiler can see what is actually
going on.

Fixes: a8463754a5a9 ("hwmon: (max6650) Use devm function to register thermal device")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (max6650) Fix minor formatting issues</title>
<updated>2019-06-24T01:33:01Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-06-07T17:23:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=228b9e196a6db701a80e80251ff521688865e6f9'/>
<id>urn:sha1:228b9e196a6db701a80e80251ff521688865e6f9</id>
<content type='text'>
CHECK: struct mutex definition without comment
CHECK: Alignment should match open parenthesis

Cc: Jean-Francois Dagenais &lt;jeff.dagenais@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (max6650) Improve error handling in max6650_update_device</title>
<updated>2019-06-24T01:33:01Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-06-07T17:23:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0c4a71d36566a783d795025260a7648447453966'/>
<id>urn:sha1:0c4a71d36566a783d795025260a7648447453966</id>
<content type='text'>
Pass errors from i2c_smbus_read_byte_data() back to the caller of
max6650_update_device().

Cc: Jean-Francois Dagenais &lt;jeff.dagenais@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (max6650) Read non-volatile registers only once</title>
<updated>2019-06-24T01:33:01Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-06-07T17:23:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=62dbe50591769f6135b3c8a93c8168b3d177a823'/>
<id>urn:sha1:62dbe50591769f6135b3c8a93c8168b3d177a823</id>
<content type='text'>
Only tachometer and alarm status registers are modified by the chip.
All other registers only need to be read only once, and reading them
repeatedly does not add any value.

Cc: Jean-Francois Dagenais &lt;jeff.dagenais@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (max6650) Convert to use devm_hwmon_device_register_with_info</title>
<updated>2019-06-24T01:33:01Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-06-07T17:23:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e193acb3d681ba28355ab8bafc49768ac609b94e'/>
<id>urn:sha1:e193acb3d681ba28355ab8bafc49768ac609b94e</id>
<content type='text'>
Convert driver to use devm_hwmon_device_register_with_info to simplify
the code and to reduce its size.

Cc: Jean-Francois Dagenais &lt;jeff.dagenais@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (max6650) Simplify alarm handling</title>
<updated>2019-06-24T01:33:01Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-06-07T17:23:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d5cc9383eea0835621cd458c34f1209d483e2ef'/>
<id>urn:sha1:0d5cc9383eea0835621cd458c34f1209d483e2ef</id>
<content type='text'>
Instead of re-reading the alarm register after reporting an alarm,
mark cached values as invalid. While this results in always reading all
data on subsequent reads, it is quite unlikely that such reads will
actually happen before the cache times out. The upside is avoiding
unnecessary unconditional i2c read operations.

Cc: Jean-Francois Dagenais &lt;jeff.dagenais@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (max6650) Cache alarm_en register</title>
<updated>2019-06-24T01:33:01Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-06-07T17:23:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f5b20b11bbc230f64c099b12c37121aacf6f0b65'/>
<id>urn:sha1:f5b20b11bbc230f64c099b12c37121aacf6f0b65</id>
<content type='text'>
The alarm_en register is read each time the is_visible function is called.
Since it is a configuration register, this is completely unnecessary.
Read it once and cache its value.

Cc: Jean-Francois Dagenais &lt;jeff.dagenais@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (max6650) Declare valid as boolean</title>
<updated>2019-06-24T01:33:01Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-06-07T17:23:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bf8c9edaa5c61999ed06c001d87c9a0c86cd0bf8'/>
<id>urn:sha1:bf8c9edaa5c61999ed06c001d87c9a0c86cd0bf8</id>
<content type='text'>
Declare valid as boolean to match its use case.

Cc: Jean-Francois Dagenais &lt;jeff.dagenais@gmail.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
</feed>
