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

Driver doesn't compile for 5.9.0+ - iio_priv_to_dev() helper migration #51

Open
joax opened this issue Aug 26, 2020 · 1 comment
Open

Comments

@joax
Copy link

joax commented Aug 26, 2020

The helper is decommissioned from iio so this driver (apple-ib-als.c in particular) needs a different strategy to access the private components of the device. I am trying to re code to this new world, I will post a PR soon unless you have one already in the making.

make[1]: Entering directory '/mnt/bb8956c1-8d7f-4076-a76b-4d4443586eea/repos/linux-git'
  CC [M]  /usr/src/apple-ibridge-0.2/apple-ib-als.o
/usr/src/apple-ibridge-0.2/apple-ib-als.c: In function ‘appleals_config_iio’:
/usr/src/apple-ibridge-0.2/apple-ib-als.c:469:28: error: implicit declaration of function ‘iio_priv_to_dev’ [-Werror=implicit-function-declaration]
  469 |  struct iio_dev *iio_dev = iio_priv_to_dev(als_dev);
      |                            ^~~~~~~~~~~~~~~
/usr/src/apple-ibridge-0.2/apple-ib-als.c:469:28: warning: initialization of ‘struct iio_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:283: /usr/src/apple-ibridge-0.2/apple-ib-als.o] Error 1
make[1]: *** [Makefile:1788: /usr/src/apple-ibridge-0.2] Error 2
make[1]: Leaving directory '/mnt/bb8956c1-8d7f-4076-a76b-4d4443586eea/repos/linux-git'
make: *** [Makefile:13: all] Error 2
@Avery-H
Copy link

Avery-H commented Sep 8, 2020

Had the same error. I used this to patch mine.

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

No branches or pull requests

2 participants