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

FYI: update for new kernel #26

Open
ghost opened this issue May 12, 2023 · 2 comments
Open

FYI: update for new kernel #26

ghost opened this issue May 12, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented May 12, 2023

In order to use this in Ubuntu 22 I had to change i2c-ch341-usb.c line 660 from

ch341_dev->irq_descs[i] = irq_to_desc(ch341_dev->irq_base + i);

to

ch341_dev->irq_descs[i] = irq_data_to_desc(irq_get_irq_data(ch341_dev->irq_base + i));

After this it worked fine with my BME280 env sensor.

@blauertee
Copy link

What happened before that modification? did it not even compile or how did the error look?

@ghost
Copy link
Author

ghost commented Dec 10, 2023

ERROR: modpost: "irq_to_decs" [/home/ecdowney/i2c-ch341-usb-master/i2c-ch341-usb.ko] undefined!

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

1 participant