]> git.baikalelectronics.ru Git - kernel.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)
committerWolfram Sang <wsa@kernel.org>
Fri, 28 Jan 2022 20:56:34 +0000 (21:56 +0100)
commit996739d46625d6ae9855a3305152f282ac6defc9
tree41915b35255500bc89b5a4edac1f9e3f53f1ea2c
parent078722e8df2918825472cc7f963b268aebd83a0e
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