]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: designware: Use device_is_compatible() instead of custom approach
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Jan 2026 08:17:51 +0000 (09:17 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 22 Jan 2026 13:21:51 +0000 (14:21 +0100)
commit2c7aa2683bfa80670dc45d310d259544240daea4
tree282b65b9a285952c4df7cac13a6d2e2b44c58159
parentfae88e03f45893cfb63c608761220a489cc6e25e
i2c: designware: Use device_is_compatible() instead of custom approach

We use MODEL_MSCC_OCELOT effectively as a flag for comparing against
"compatible" property. Use device_is_compatible() directly to make it
clear.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260114081954.252160-3-andriy.shevchenko@linux.intel.com
drivers/i2c/busses/i2c-designware-common.c
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-platdrv.c