<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/staging/iio, branch master</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2026-03-21T13:16:07+00:00</updated>
<entry>
<title>staging: iio: ad9834: use sysfs_emit() and simplify show functions</title>
<updated>2026-03-21T13:16:07+00:00</updated>
<author>
<name>Gabriel Rondon</name>
<email>grondon@gmail.com</email>
</author>
<published>2026-03-20T22:24:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8a75ac8f0a7274085aa71aacfaa21ed72bf8435b'/>
<id>urn:sha1:8a75ac8f0a7274085aa71aacfaa21ed72bf8435b</id>
<content type='text'>
Replace sprintf() with sysfs_emit() in sysfs attribute show functions.
sysfs_emit() is the preferred API for sysfs callbacks as it is aware
of the PAGE_SIZE buffer limit.

Also simplify the wavetype_available show functions by removing
the intermediate string variable and returning directly from each
branch.

Signed-off-by: Gabriel Rondon &lt;grondon@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: ad5933: use sysfs_emit() in show functions</title>
<updated>2026-03-21T13:10:14+00:00</updated>
<author>
<name>Gabriel Rondon</name>
<email>grondon@gmail.com</email>
</author>
<published>2026-03-20T22:24:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f6192780807d5c2fc08f506948b19c6072e1bfe8'/>
<id>urn:sha1:f6192780807d5c2fc08f506948b19c6072e1bfe8</id>
<content type='text'>
Replace sprintf() with sysfs_emit() in all sysfs attribute show
functions. sysfs_emit() is the preferred API for sysfs callbacks as
it is aware of the PAGE_SIZE buffer limit.

Also remove the unnecessary (int) cast in ad5933_show_frequency()
and use the correct format specifier %llu for the unsigned long long
freqreg variable.

Signed-off-by: Gabriel Rondon &lt;grondon@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: ad7816: Replace sprintf() with sysfs_emit()</title>
<updated>2026-03-02T21:01:23+00:00</updated>
<author>
<name>Bruno Martins</name>
<email>ehanoc@protonmail.com</email>
</author>
<published>2026-03-01T21:28:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=cd04646c0f3eefdde87538f6ff932420cedc9ba0'/>
<id>urn:sha1:cd04646c0f3eefdde87538f6ff932420cedc9ba0</id>
<content type='text'>
As stated in Documentation/filesystems/sysfs.rst:
'New implementations of show() methods should only use sysfs_emit() or
sysfs_emit_at() when formatting the value to be returned to user space.'

Replace sprintf with sysfs_emit in the following sysfs show functions:
- ad7816_show_mode()
- ad7816_show_available_modes()
- ad7816_show_channel()
- ad7816_show_value()
- ad7816_show_oti()

Signed-off-by: Bruno Martins &lt;ehanoc@protonmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: impedance-analyzer: ad5933: use div64_ul() instead of do_div()</title>
<updated>2026-02-23T20:44:19+00:00</updated>
<author>
<name>Archit Anant</name>
<email>architanant5@gmail.com</email>
</author>
<published>2026-02-18T12:53:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0e2af0fc30eca0ae92abcf1c8fc7be94a8cc95c3'/>
<id>urn:sha1:0e2af0fc30eca0ae92abcf1c8fc7be94a8cc95c3</id>
<content type='text'>
Replace do_div() with div64_ul() since the remainder is not used.
div64_ul() is the preferred API for 64-bit by 32-bit division when
only the quotient is needed.

Also replace explicit casting and shifting with the BIT_ULL(27) macro
for clarity.

Note: A mathematical simplification to `(freq * BIT_ULL(29)) / mclk` was
suggested during review to improve precision. However, as confirmed by
maintainers, the original driver's truncation via `(mclk / 4)` might
be intentional or relied upon by userspace. Since hardware is not
available for verification, this patch preserves the original logic
to avoid regression risk in the absence of testing.

Issue identified by coccicheck using do_div.cocci.

Signed-off-by: Archit Anant &lt;architanant5@gmail.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: adt7316: modernize power management</title>
<updated>2026-01-11T13:00:22+00:00</updated>
<author>
<name>Michael Harris</name>
<email>michaelharriscode@gmail.com</email>
</author>
<published>2026-01-06T14:50:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c84cde33b00451c7380482d19feef67d04deae7d'/>
<id>urn:sha1:c84cde33b00451c7380482d19feef67d04deae7d</id>
<content type='text'>
Replaced use of deprecated function SIMPLE_DEV_PM_OPS() with
EXPORT_GPL_SIMPLE_DEV_PM_OPS().

Removed PM preprocessor conditions with usage of pm_sleep_ptr().

Signed-off-by: Michael Harris &lt;michaelharriscode@gmail.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: ad9832: clean up whitespace</title>
<updated>2025-12-21T19:18:20+00:00</updated>
<author>
<name>Tomas Borquez</name>
<email>tomasborquez13@gmail.com</email>
</author>
<published>2025-12-15T19:08:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=eec44b04eb0e93143f89a2e2cb04159f62c2e8a3'/>
<id>urn:sha1:eec44b04eb0e93143f89a2e2cb04159f62c2e8a3</id>
<content type='text'>
Remove unnecessary blank lines between comment sections to improve
readability.

Signed-off-by: Tomas Borquez &lt;tomasborquez13@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: ad9832: remove platform_data support</title>
<updated>2025-12-21T11:10:26+00:00</updated>
<author>
<name>Tomas Borquez</name>
<email>tomasborquez13@gmail.com</email>
</author>
<published>2025-12-05T20:27:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c7f9c36b7921235453828bfff1ad6f081267a7ec'/>
<id>urn:sha1:c7f9c36b7921235453828bfff1ad6f081267a7ec</id>
<content type='text'>
Remove legacy platform_data support as there are no in tree users and
this approach belongs to a long gone era. The policy decision on what
to output is a userspace problem, not something that should be provided
from firmware.

The driver now initializes the device to a safe state (SLEEP|RESET|CLR)
outputting nothing. Userspace can configure the desired frequencies and
phases via the existing sysfs attributes once the device is ready to be
used.

Original discussion started here [1].

Link: https://lore.kernel.org/linux-iio/20250628161040.3d21e2c4@jic23-huawei/ #[1]
Suggested-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Signed-off-by: Tomas Borquez &lt;tomasborquez13@gmail.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: adt7316: replace sprintf() with sysfs_emit()</title>
<updated>2025-11-16T15:25:08+00:00</updated>
<author>
<name>Shi Hao</name>
<email>i.shihao.999@gmail.com</email>
</author>
<published>2025-11-16T10:16:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f9e05791642810a0cf6237d39fafd6fec5e0b4bb'/>
<id>urn:sha1:f9e05791642810a0cf6237d39fafd6fec5e0b4bb</id>
<content type='text'>
Convert several sprintf() calls to sysfs_emit() in the
sysfs show functions, as it is the preferred helper and
prevents potential buffer overruns.

No functional changes intended.

Signed-off-by: Shi Hao &lt;i.shihao.999@gmail.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy@kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: ad9834: remove empty ad9834.h file</title>
<updated>2025-10-19T10:59:18+00:00</updated>
<author>
<name>Taimoor Zaeem</name>
<email>taimoorzaeem@gmail.com</email>
</author>
<published>2025-10-06T09:40:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9cc2d6566f0bac8efd4e9f75a07c11c1a12b20ba'/>
<id>urn:sha1:9cc2d6566f0bac8efd4e9f75a07c11c1a12b20ba</id>
<content type='text'>
Remove drivers/staging/iio/frequency/ad9834.h header file
because it contains nothing except the include guards.

Signed-off-by: Taimoor Zaeem &lt;taimoorzaeem@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: adc: ad7816: Drop unnecessary dev_set_drvdata() call</title>
<updated>2025-08-25T08:24:19+00:00</updated>
<author>
<name>Salah Triki</name>
<email>salah.triki@gmail.com</email>
</author>
<published>2025-08-19T15:00:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=086e410063be831d2a5622aa313b459122b02942'/>
<id>urn:sha1:086e410063be831d2a5622aa313b459122b02942</id>
<content type='text'>
Remove the call to `dev_set_drvdata()` and the associated comment
since private data is never read.

Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
Reviewed-by: David Lechner &lt;dlechner@baylibre.com&gt;
Link: https://patch.msgid.link/aKSRpTuwA0P-ZaUS@pc
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
</feed>
