]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: Fix conditional for substituting empty ACPI functions
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Fri, 2 Aug 2024 15:22:14 +0000 (16:22 +0100)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 4 Aug 2024 14:33:31 +0000 (16:33 +0200)
commitf17c06c6608ad4ecd2ccf321753fb511812d821b
tree0c344807531c3633c13ad1f10d859725375365ba
parentf6c29f710c1ff2590109f83be3e212b86c01e0f3
i2c: Fix conditional for substituting empty ACPI functions

Add IS_ENABLED(CONFIG_I2C) to the conditional around a bunch of ACPI
functions.

The conditional around these functions depended only on CONFIG_ACPI.
But the functions are implemented in I2C core, so are only present if
CONFIG_I2C is enabled.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
include/linux/i2c.h