All of lore.kernel.org
 help / color / mirror / Atom feed
* Moving ad2s1200 out of staging
@ 2018-03-12 15:36 David Julian Veenstra
  2018-03-12 17:05 ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: David Julian Veenstra @ 2018-03-12 15:36 UTC (permalink / raw)
  To: linux-iio

Dear IIO Community,

I have looked at the ad2s1200 driver. To clean up the code, I propose
the following:

1. Replace Licence with SPDX identifier
2. Reorder variable declarations to prefer reverse
    Christmas tree ordering.
3. Add newlines (e.g. before return statement)
4. Add documentation to the device specific struct
5. Sort headers alphabetically
6. Remove indexed property for channels as only a single channel is needed
    per type

If I understand the manual correctly, the unit of the angular velocity is
rps (not entirely sure). So to conform the IIO ABI, a scaling factor
needs to
be added (IIO_CHAN_INFO_SCALE). In addition it also misses either a
MOD_X, MOD_Y, or MOD_Z.

The documentation in Documentation/ABI/testing/sysfs-bus-iio does not
define what the unit should be for an angle. If the velocity is defined
as radians
per second, it would make sense for the angle to be defined in radians.
Is there
any agreement of what the unit should be for angles?

Besides missing features, I did not find anything else wrong with the
driver.

Best regards,
David Veenstra

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-13 22:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-12 15:36 Moving ad2s1200 out of staging David Julian Veenstra
2018-03-12 17:05 ` Jonathan Cameron
2018-03-13 22:11   ` David Julian Veenstra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.