i2c: mux: Avoid potential false error message in i2c_mux_add_adapter
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 23 Sep 2023 21:54:06 +0000 (23:54 +0200)
committerWolfram Sang <wsa@kernel.org>
Mon, 25 Sep 2023 06:22:02 +0000 (08:22 +0200)
commitb13e59e74ff71a1004e0508107e91e9a84fd7388
tree7b92b6c3c43ef5c2bfe178fea4a2be357ae8f078
parentf5d19bbdb5289de632cf4ac8ace809c4648389ea
i2c: mux: Avoid potential false error message in i2c_mux_add_adapter

I2C_CLASS_DEPRECATED is a flag and not an actual class.
There's nothing speaking against both, parent and child, having
I2C_CLASS_DEPRECATED set. Therefore exclude it from the check.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-mux.c