[PATCH 5.4 36/67] i2c: slave: improve sanity check when registering