forked from analogdevicesinc/no-OS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: imu: adis: Rework scale implementation
Currently the scale implementation is not optimal: the arrays used for scale which are defined in the chip specific drivers have a bigger size than needed because device id is used. This commit removes this problem by: - adding chip specific API declaration to retrieve the scale, instead of using scale arrays. - implementing the chip specific APIs to retrieve the scale for each existing adis driver - using a device id with no offset in each chip specific driver to define the scales for all supported devices. All these changes lead to correct scale reading from adis driver based on the device id, with driver-specific scale array size equal to the number of supported devices. Unit-tests are also updated to reflect this change. Signed-off-by: Ramona Gradinariu <[email protected]>
- Loading branch information
1 parent
4916b27
commit fccff3a
Showing
9 changed files
with
370 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.