]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: Drop legacy muxing pseudo-drivers
authorJean Delvare <jdelvare@suse.de>
Tue, 22 Oct 2024 10:00:27 +0000 (12:00 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Sun, 17 Nov 2024 10:58:14 +0000 (11:58 +0100)
commitb7ef4e0b1fb548e166303cb6c16580e6ccffa2bb
tree474b3868febf7b73f7fbeaf44036ab893d36e393
parent5f5c2d4579ca6836f5604cca979debd68ecfe23f
i2c: Drop legacy muxing pseudo-drivers

The i2c-amd756-s4882 and i2c-nforce2-s4985 muxing pseudo-drivers were
written at a time when the i2c core did not support muxing. They are
essentially board-specific hacks. If we had to add support for these
boards today, we would implement it in a completely different way.

These Tyan server boards are 19 years old by now, so I very much doubt
any of these is still running today. So let's just drop this clumsy
code. If anyone really still needs this support and complains, I'll
rewrite it in a proper way on top of i2c-mux.

This also fixes the following warnings:
drivers/i2c/busses/i2c-amd756.c:286:20: warning: symbol 'amd756_smbus' was not declared. Should it be static?
drivers/i2c/busses/i2c-nforce2.c:123:20: warning: symbol 'nforce2_smbus' was not declared. Should it be static?

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Andi Shyti <andi.shyti@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
MAINTAINERS
drivers/i2c/busses/Kconfig
drivers/i2c/busses/Makefile
drivers/i2c/busses/i2c-amd756-s4882.c [deleted file]
drivers/i2c/busses/i2c-amd756.c
drivers/i2c/busses/i2c-nforce2-s4985.c [deleted file]
drivers/i2c/busses/i2c-nforce2.c