]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: smbus: Use device_*() functions instead of of_*()
authorAkhil R <akhilrajeev@nvidia.com>
Fri, 28 Jan 2022 11:44:27 +0000 (17:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:43 +0000 (15:11 +0200)
commit19e9b89c2c7a6cbe1e3ea14e257f264c106c028f
tree53b25505e2b4a4f6a280e8977c6e02b3de18eeff
parentc15e2ab4fed9a9dc6c90b20d50352b72fa093345
i2c: smbus: Use device_*() functions instead of of_*()

[ Upstream commit a263a84088f689bf0c1552a510b25d0bcc45fcae ]

Change of_*() functions to device_*() for firmware agnostic usage.
This allows to have the smbus_alert interrupt without any changes
in the controller drivers using the ACPI table.

Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Stable-dep-of: 8d3cefaf6592 ("i2c: core: Lock address during client device instantiation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/i2c-core-base.c
drivers/i2c/i2c-core-smbus.c
drivers/i2c/i2c-smbus.c
include/linux/i2c-smbus.h