Kernel 5.8 compatibility for i2c_new_device
The function `i2c_new_device` disappeared in kernel 5.8. It is now required to use `i2c_new_client_device`. Error check now requires using `IS_ERR` instead of just cheking for NULL. Signed-off-by: Gwenhael GOAVEC <gwenhael.goavec@femto-st.fr> Signed-off-by: Mathis MARION <mathis.marion@grenoble-inp.org>
Showing
Please
register
or
sign in
to comment