On Tue, Jun 23, 2015 at 8:35 PM, Luc Van Rompaey
Make console driver export pointer to a table. This will make it
possible for console driver to work without your module but provides
access to this table if needed.
Of course console driver will need to cope with NULL pointer (or
initialize table to something meaningful).
Hmmm... I think this is the one thing that I have not yet tried.
If I understand correctly, I would then have to create a an EXPORT_VAR
pointer variable in the console module, and let my 'setkey' module store the
appropriate value into it.
The function to remap an input key, according to the contents of the table,
would then be a part of the console driver.
It can also be a function pointer. So code in console driver would reduce to