This no longer compiles on modern systems because sparse_keymap_free has been removed.
chris@helmhorn:~/git/panasonic-hbtn$ make
make -C /lib/modules/5.0.0-36-generic/build M=/home/chris/git/panasonic-hbtn modules
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-36-generic'
CC [M] /home/chris/git/panasonic-hbtn/panasonic-hbtn.o
/home/chris/git/panasonic-hbtn/panasonic-hbtn.c: In function ‘acpi_pcc_init_input’:
/home/chris/git/panasonic-hbtn/panasonic-hbtn.c:170:5: error: implicit declaration of function ‘sparse_keymap_free’; did you mean ‘sparse_keymap_setup’? [-Werror=implicit-function-declaration]
sparse_keymap_free(input_dev);
^~~~~~~~~~~~~~~~~~
sparse_keymap_setup
cc1: some warnings being treated as errors
scripts/Makefile.build:291: recipe for target '/home/chris/git/panasonic-hbtn/panasonic-hbtn.o' failed
make[2]: *** [/home/chris/git/panasonic-hbtn/panasonic-hbtn.o] Error 1
Makefile:1614: recipe for target '_module_/home/chris/git/panasonic-hbtn' failed
make[1]: *** [_module_/home/chris/git/panasonic-hbtn] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-36-generic'
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 2
This no longer compiles on modern systems because
sparse_keymap_freehas been removed.