sw:i2c: add support for kernel greater than 4.7
Instead of check for version here and there, the main code always uses
the latest API, and in a preprocessor ``if`` statement I implemented
the compatibility layer.
Like this it will be easier to apply patches from the kernel to our
local driver
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
Please register or sign in to comment