drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers
authorPiyush Malgujar <pmalgujar@marvell.com>
Wed, 11 May 2022 13:36:59 +0000 (06:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 06:43:37 +0000 (08:43 +0200)
commitf55c75cf73c0854c8b24bbc97a45d78e786cd8dc
tree8fd861cdbadf062cf8b094fc2be1dc84a135971f
parent71475936e647c192d6c5321f1dc582c0f9573413
drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers

[ Upstream commit 03a35bc856ddc09f2cc1f4701adecfbf3b464cb3 ]

Due to i2c->adap.dev.fwnode not being set, ACPI_COMPANION() wasn't properly
found for TWSI controllers.

Signed-off-by: Szymon Balcerak <sbalcerak@marvell.com>
Signed-off-by: Piyush Malgujar <pmalgujar@marvell.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-thunderx-pcidrv.c