I downloaded the driver from https://pcengines.ch/file/gpio_apu2.tar.gz but when I try to compile it, it has an error:
/opt/GPIO_driver/gpio-apu2.c: In function ‘gpio_apu2_probe’:
/opt/GPIO_driver/gpio-apu2.c:187:16: error: ‘struct gpio_chip’ has no member named ‘dev’
gpio_apu2_chip.dev = &dev->dev;
My C is very weak, but looking at the code, i don't see a place in the struct for `dev`. I know others have used this driver, so I must be doing something wrong.
Linux version 4.8.3
Gcc version 4.9.4