Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

channel: Correct linear x/y/z modifier names #1176

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

spencercw
Copy link
Contributor

PR Description

I'm not sure where the *-g names came from, but the kernel calls them linear_*[1]. This fixes an error when using the Bosch BNO055, which is the only user of these modifiers.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/industrialio-core.c?id=83a7eefedc9b56fe7bfeff13b6c7356688ffa670#n147

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have commented new code, particulary complex or unclear areas
  • I have checked that I did not intoduced new warnings or errors (CI output)
  • I have checked that components that use libiio did not get broken
  • I have updated the documentation accordingly (GitHub Pages, READMEs, etc)

I'm not sure where the `*-g` names came from, but the kernel calls them
`linear_*`[1]. This fixes an error when using the Bosch BNO055, which is
the only user of these modifiers.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/industrialio-core.c?id=83a7eefedc9b56fe7bfeff13b6c7356688ffa670#n147

Signed-off-by: Chris Spencer <spencercw@gmail.com>
@rgetz
Copy link
Contributor

rgetz commented Jun 11, 2024

According to : torvalds/linux@bcc57a4 - things have been broken for a couple years...

Likely a missing part in https://github.com/analogdevicesinc/libiio/blob/main/CI/azure/check_kernel.sh which should be checking drivers/iio/industrialio-core.c as well...

Then you would keep up to date...

Copy link
Contributor

@mhennerich mhennerich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing!

@pcercuei
Copy link
Contributor

LGTM

rgetz added a commit to rgetz/libiio that referenced this pull request Jul 21, 2024
This would have found and avoided analogdevicesinc#1176

Signed-off-by: Robin Getz <rgetz@mathworks.com>
rgetz added a commit to rgetz/libiio that referenced this pull request Jul 22, 2024
This would have found and avoided analogdevicesinc#1176

Signed-off-by: Robin Getz <rgetz@mathworks.com>
@mhennerich mhennerich merged commit 3dba184 into analogdevicesinc:main Jul 22, 2024
24 of 25 checks passed
rgetz added a commit to rgetz/libiio that referenced this pull request Aug 4, 2024
This would have found and avoided analogdevicesinc#1176

Signed-off-by: Robin Getz <rgetz@mathworks.com>
rgetz added a commit to rgetz/libiio that referenced this pull request Aug 4, 2024
This would have found and avoided analogdevicesinc#1176

Signed-off-by: Robin Getz <rgetz@mathworks.com>
mhennerich pushed a commit that referenced this pull request Aug 30, 2024
This would have found and avoided #1176

Signed-off-by: Robin Getz <rgetz@mathworks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants