<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/staging/iio/cdc, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/staging/iio/cdc?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/staging/iio/cdc?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-08-15T21:30:01Z</updated>
<entry>
<title>iio: cdc: ad7746: Move driver out of staging.</title>
<updated>2022-08-15T21:30:01Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-08-07T14:01:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=40b5c4d5b5a67e79eef86a653cdc8b10b4d73f11'/>
<id>urn:sha1:40b5c4d5b5a67e79eef86a653cdc8b10b4d73f11</id>
<content type='text'>
All known major issues with this driver resolved so time to move
it out of staging. This also allows us to remove the now empty
staging/iio/cdc directory and build files.

Note this cleanup work was done using the roadtest framework.
https://lore.kernel.org/all/20220311162445.346685-1-vincent.whitchurch@axis.com/

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: ad7746: White space cleanup</title>
<updated>2022-08-15T21:30:01Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=6d6c760954dc3075378ce925f8a511c64cbd908f'/>
<id>urn:sha1:6d6c760954dc3075378ce925f8a511c64cbd908f</id>
<content type='text'>
Tidy up some trivial whitespace issues.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-15-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Use read_avail() rather than opencoding.</title>
<updated>2022-08-15T21:30:01Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=4b717201a00576a2aad4d02ae61df363279bd934'/>
<id>urn:sha1:4b717201a00576a2aad4d02ae61df363279bd934</id>
<content type='text'>
Switch over to the IIO core handling for _available attributes
making them available for in kernel users and enforcing correct
naming etc automatically.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-14-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Switch from _offset to _zeropoint for differential channels.</title>
<updated>2022-08-15T21:30:01Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2d72ead25abb72996a7e92608224d2503a3bac9c'/>
<id>urn:sha1:2d72ead25abb72996a7e92608224d2503a3bac9c</id>
<content type='text'>
As this offset is applied equally to both lines of the differential
pair, _ofset should not be used. Use the new ABI _zeropoint instead
to avoid userspace software applying this value when calculating
real value = (_raw + _offset) * _scale

Also add a comment to explain why an offset of 0x800000 is applied
within the driver rather than exposed to userspace.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-13-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Use _raw and _scale for temperature channels.</title>
<updated>2022-08-15T21:30:00Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=431e9147b4667d67399fe5db4f8203d55811951b'/>
<id>urn:sha1:431e9147b4667d67399fe5db4f8203d55811951b</id>
<content type='text'>
Performing the maths to rescale a 24 bit raw reading within the driver
was resulting in precision losses.  So make that userspace's problem
by exporting the scale and letting the maths be done in userspace with
appropriate precision.  Issue identified using roadtester testing
framework.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-11-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Drop unused i2c_set_clientdata()</title>
<updated>2022-08-15T21:30:00Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=90e7853ce051bca3690d3518e523f427e55c4806'/>
<id>urn:sha1:90e7853ce051bca3690d3518e523f427e55c4806</id>
<content type='text'>
As the comment states, this was only used in remove() and now
there is no explicit remove() function to make use of it.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-10-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Break up use of chan-&gt;address and use FIELD_PREP etc</title>
<updated>2022-08-15T21:30:00Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=9eee2fc4a670d70ded6cc88c42d760338ce96918'/>
<id>urn:sha1:9eee2fc4a670d70ded6cc88c42d760338ce96918</id>
<content type='text'>
Instead of encoding several different fields into chan-&gt;address use
an indirection to a separate per channel structure where the various
fields can be expressed in a more readable form.  This also allows
the register values to be constructed at runtime using FIELD_PREP().

Drop the now redundant _SHIFT macros.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-9-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7764: Push locking down into case statements in read/write_raw</title>
<updated>2022-08-15T21:30:00Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=b1f567bde7e12e7671d8b0015ad3cbff8f3a8d3b'/>
<id>urn:sha1:b1f567bde7e12e7671d8b0015ad3cbff8f3a8d3b</id>
<content type='text'>
Not all paths require any locking at all. So to simplify the
removal of such locking push the locks down into the individual
case statements.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-8-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Factor out ad7746_read_channel()</title>
<updated>2022-08-15T21:30:00Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=5d54564e47435a5c1c1afa63c1d64908609cd545'/>
<id>urn:sha1:5d54564e47435a5c1c1afa63c1d64908609cd545</id>
<content type='text'>
Reduce deep indenting and simplify the locking cleanup that follows.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-7-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Use local buffer for multi byte reads.</title>
<updated>2022-08-15T21:30:00Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=77fdc4cead204f2b3e2e1e365f70528199298737'/>
<id>urn:sha1:77fdc4cead204f2b3e2e1e365f70528199298737</id>
<content type='text'>
I2C does not require DMA safe buffers so there is no need to ensure
the buffers are in their own cacheline. Hence simplify things by
using a local variable instead of embedding the buffer in the chip
info structure.

Includes a trivial whitespace cleanup to drop a line between function
and error handling.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-6-jic23@kernel.org
</content>
</entry>
</feed>
