]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: designware: Combine some of the common functions
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 20 Jan 2026 13:07:25 +0000 (14:07 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 22 Jan 2026 13:43:41 +0000 (14:43 +0100)
commit6062443a0593a0e1d36c3af939dde170a396f1a0
treea0df7a0f36bfad6d7a1644eb3365931787a5b90b
parent2c7aa2683bfa80670dc45d310d259544240daea4
i2c: designware: Combine some of the common functions

The adapter can be registered just in the core instead of
separately in the master and slave drivers. The same applies
to the interrupt.

The dedicated "target only" (slave only) configuration
for this controller will be removed so that host mode
(master mode) will always be supported together with the
target mode. Therefore the descrption for the "target only"
configuration that appears in the "name" sysfs attribute
file is also dropped while at it.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260120130729.1679560-2-heikki.krogerus@linux.intel.com
drivers/i2c/busses/i2c-designware-common.c
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-master.c
drivers/i2c/busses/i2c-designware-slave.c