spi-ch341-usb
spi-ch341-usb copied to clipboard
FYI: update for new kernel
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.
What happened before that modification? did it not even compile or how did the error look?
ERROR: modpost: "irq_to_decs" [/home/ecdowney/i2c-ch341-usb-master/i2c-ch341-usb.ko] undefined!