[PATCH 4.14 022/228] i2c: slave: improve sanity check when registering