i2c: smbus: Use device_*() functions instead of of_*()
authorAkhil R <akhilrajeev@nvidia.com>
Fri, 28 Jan 2022 11:44:27 +0000 (17:14 +0530)
committerWolfram Sang <wsa@kernel.org>
Fri, 28 Jan 2022 20:56:34 +0000 (21:56 +0100)
commita263a84088f689bf0c1552a510b25d0bcc45fcae
tree41915b35255500bc89b5a4edac1f9e3f53f1ea2c
parent20e8ef5c7ffaa4c1d5f65727c536ffaf37078d5f
i2c: smbus: Use device_*() functions instead of of_*()

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>
drivers/i2c/i2c-core-base.c
drivers/i2c/i2c-core-smbus.c
drivers/i2c/i2c-smbus.c
include/linux/i2c-smbus.h