<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hwmon/hwmon.c, branch linux-4.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-12-10T05:54:24Z</updated>
<entry>
<title>hwmon: (core) Simplify sysfs attribute name allocation</title>
<updated>2016-12-10T05:54:24Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-10-16T17:52:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3a412d5e4a1c831723d0aaf305f1cf9a78ad9c90'/>
<id>urn:sha1:3a412d5e4a1c831723d0aaf305f1cf9a78ad9c90</id>
<content type='text'>
Allocating the sysfs attribute name only if needed and only with the
required minimum length looks optimal, but does not take the additional
overhead for both devm_ data structures and the allocation header itself
into account. This also results in unnecessary memory fragmentation.
Move the sysfs name string into struct hwmon_device_attribute and give it
a sufficient length to reduce this overhead.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (core) Rename groups parameter in API to extra_groups</title>
<updated>2016-12-10T05:54:22Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-10-17T00:20:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=848ba0a2f20dc121a3ef5272a24641d2bd963d8b'/>
<id>urn:sha1:848ba0a2f20dc121a3ef5272a24641d2bd963d8b</id>
<content type='text'>
The 'groups' parameter of hwmon_device_register_with_info() and
devm_hwmon_device_register_with_info() is only necessary if extra
non-standard attributes need to be provided. Rename the parameter
to extra_groups and clarify the documentation.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (core) Explain why at least two attribute groups are allocated</title>
<updated>2016-12-10T05:54:21Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-10-17T00:11:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b2a4cc3a060da0de17ab1e854cef89f5e74e2064'/>
<id>urn:sha1:b2a4cc3a060da0de17ab1e854cef89f5e74e2064</id>
<content type='text'>
A list of sysfs attribute groups is NULL-terminated, so we always need
to allocate data for at least two groups (the dynamically generated group
plus the NULL pointer). Add a comment to explain the situation.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (core) Make is_visible callback truly mandatory</title>
<updated>2016-12-10T05:54:20Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-10-17T00:06:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=239552f495b91fc8f3fba4b5094233e053d265cb'/>
<id>urn:sha1:239552f495b91fc8f3fba4b5094233e053d265cb</id>
<content type='text'>
The is_visible callback provides the sysfs attribute mode and is thus
truly mandatory as documented. Check it once at registration and remove
other checks for its existence.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (core) Deprecate hwmon_device_register()</title>
<updated>2016-12-10T05:54:19Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-10-16T18:31:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=af1bd36c06b5fad33baa7ee16820226efbd96cd9'/>
<id>urn:sha1:af1bd36c06b5fad33baa7ee16820226efbd96cd9</id>
<content type='text'>
Inform the user that hwmon_device_register() is deprecated,
and suggest conversion to the newest API. Also remove
hwmon_device_register() from the kernel API documentation.

Note that hwmon_device_register() is not marked as __deprecated()
since doing so might result in build errors.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (core) Clarify use of chip attributes</title>
<updated>2016-12-10T05:54:18Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-10-16T17:38:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f4d325d5ed099c3ca9b2c23a53dc64e871a659c8'/>
<id>urn:sha1:f4d325d5ed099c3ca9b2c23a53dc64e871a659c8</id>
<content type='text'>
Describing chip attributes as "attributes which apply to the entire chip"
is confusing. Rephrase to "attributes which are not bound to a specific
input or output".

Also rename hwmon_chip_attr_templates[] to hwmon_chip_attrs[] to indicate
that the respective strings strings are not templates but actual attribute
names.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (core) Add support for string attributes to new API</title>
<updated>2016-12-10T05:54:16Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-08-08T03:51:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e159ab5cb1afb519601a961405933c61cdd5a56a'/>
<id>urn:sha1:e159ab5cb1afb519601a961405933c61cdd5a56a</id>
<content type='text'>
The new API is so far only suited for data attributes and does not work
well for string attributes, specifically for the 'label' attributes.
Provide a separate callback function for those.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (core) fix resource leak on devm_kcalloc failure</title>
<updated>2016-10-24T13:05:13Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2016-10-23T20:56:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=38d8ed65092ed22f52a95f397855cace0260e110'/>
<id>urn:sha1:38d8ed65092ed22f52a95f397855cace0260e110</id>
<content type='text'>
If dev_kcalloc fails to allocate hw_dev-&gt;groups then the current
exit path is a direct return, causing a leak of resources such
as hwdev and ida is not removed.  Fix this by exiting via the
free_hwmon exit path that performs the necessary resource cleanup.

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (core) Avoid cyclic dependency between hwmon and thermal_sys</title>
<updated>2016-09-09T04:34:16Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-08-12T13:28:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=86430c1a66fe490fc97b0970575c223e27dee49d'/>
<id>urn:sha1:86430c1a66fe490fc97b0970575c223e27dee49d</id>
<content type='text'>
If both hwmon and thermal_sys are built as modules, and
CONFIG_THERMAL_HWMON is enabled, the following cyclic module dependency
is reported.

depmod: ERROR: Found 2 modules in dependency cycles!
depmod: ERROR: Cycle detected: hwmon -&gt; thermal_sys -&gt; hwmon

Fixes: e4bce763adb2 ("hwmon: (core) New hwmon registration API")
Reported-by: Vignesh R &lt;vigneshr@ti.com&gt;
Cc: Keerthy J &lt;j-keerthy@ti.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (core) Add basic pwm attribute support to new API</title>
<updated>2016-09-09T04:34:15Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-06-26T19:20:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f9f7bb3a0efafb662a4c639bc62df1df2b7321f9'/>
<id>urn:sha1:f9f7bb3a0efafb662a4c639bc62df1df2b7321f9</id>
<content type='text'>
Add basic pwm attribute support (no auto attributes) to new API.

Reviewed-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
</feed>
