[PATCH 4.19 22/48] i2c: slave: improve sanity check when registering