* [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage [not found] <S229853AbiJTWkg/20221020224036Z+12888@vger.kernel.org> @ 2022-10-10 18:33 ` Adam Borowski 2022-10-21 6:43 ` Wolfram Sang 0 siblings, 1 reply; 5+ messages in thread From: Adam Borowski @ 2022-10-10 18:33 UTC (permalink / raw) To: Khalil Blaiech, Asmaa Mnebhi, linux-i2c, linux-kernel This fixes maybe_unused warnings/errors. According to a comment during device tree removal, only ACPI is supported, thus let's actually require it. Fixes: be18c5ede25da39a0eda541f6de3620a30cf731f Signed-off-by: Adam Borowski <kilobyte@angband.pl> --- drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-mlxbf.c | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 264e780ae32e..e50f9603d189 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -764,6 +764,7 @@ config I2C_LPC2K config I2C_MLXBF tristate "Mellanox BlueField I2C controller" depends on MELLANOX_PLATFORM && ARM64 + depends on ACPI select I2C_SLAVE help Enabling this option will add I2C SMBus support for Mellanox BlueField diff --git a/drivers/i2c/busses/i2c-mlxbf.c b/drivers/i2c/busses/i2c-mlxbf.c index e68e775f187e..1810d5791b3d 100644 --- a/drivers/i2c/busses/i2c-mlxbf.c +++ b/drivers/i2c/busses/i2c-mlxbf.c @@ -2247,7 +2247,6 @@ static struct i2c_adapter_quirks mlxbf_i2c_quirks = { .max_write_len = MLXBF_I2C_MASTER_DATA_W_LENGTH, }; -#ifdef CONFIG_ACPI static const struct acpi_device_id mlxbf_i2c_acpi_ids[] = { { "MLNXBF03", (kernel_ulong_t)&mlxbf_i2c_chip[MLXBF_I2C_CHIP_TYPE_1] }, { "MLNXBF23", (kernel_ulong_t)&mlxbf_i2c_chip[MLXBF_I2C_CHIP_TYPE_2] }, @@ -2282,12 +2281,6 @@ static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv) return 0; } -#else -static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv) -{ - return -ENOENT; -} -#endif /* CONFIG_ACPI */ static int mlxbf_i2c_probe(struct platform_device *pdev) { @@ -2490,9 +2483,7 @@ static struct platform_driver mlxbf_i2c_driver = { .remove = mlxbf_i2c_remove, .driver = { .name = "i2c-mlxbf", -#ifdef CONFIG_ACPI .acpi_match_table = ACPI_PTR(mlxbf_i2c_acpi_ids), -#endif /* CONFIG_ACPI */ }, }; -- 2.37.2.609.g9ff673ca1a ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage 2022-10-10 18:33 ` [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage Adam Borowski @ 2022-10-21 6:43 ` Wolfram Sang 2022-10-21 6:47 ` Wolfram Sang ` (2 more replies) 0 siblings, 3 replies; 5+ messages in thread From: Wolfram Sang @ 2022-10-21 6:43 UTC (permalink / raw) To: Adam Borowski; +Cc: Khalil Blaiech, Asmaa Mnebhi, linux-i2c, linux-kernel [-- Attachment #1: Type: text/plain, Size: 658 bytes --] On Mon, Oct 10, 2022 at 08:33:51PM +0200, Adam Borowski wrote: > This fixes maybe_unused warnings/errors. > > According to a comment during device tree removal, only ACPI is supported, > thus let's actually require it. > > Fixes: be18c5ede25da39a0eda541f6de3620a30cf731f > Signed-off-by: Adam Borowski <kilobyte@angband.pl> Applied to for-current, thanks! @Asmaa, @Khalil: normally, I will not skip the driver maintainer's ack but wait for it. I'd like to make an exception this time because I don't want to get another dozen of patches fixing this build warning. Since Asmaa already acked a similar patch, I hope this is okay with you. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage 2022-10-21 6:43 ` Wolfram Sang @ 2022-10-21 6:47 ` Wolfram Sang 2022-10-21 12:43 ` Asmaa Mnebhi 2022-10-21 12:57 ` Khalil Blaiech 2 siblings, 0 replies; 5+ messages in thread From: Wolfram Sang @ 2022-10-21 6:47 UTC (permalink / raw) To: Adam Borowski, Khalil Blaiech, Asmaa Mnebhi, linux-i2c, linux-kernel [-- Attachment #1: Type: text/plain, Size: 213 bytes --] > > Fixes: be18c5ede25da39a0eda541f6de3620a30cf731f BTW this has to look like: Fixes: be18c5ede25d ("i2c: mlxbf: remove device tree support") checkpatch will warn you about it. This time, I fixed it for you. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage 2022-10-21 6:43 ` Wolfram Sang 2022-10-21 6:47 ` Wolfram Sang @ 2022-10-21 12:43 ` Asmaa Mnebhi 2022-10-21 12:57 ` Khalil Blaiech 2 siblings, 0 replies; 5+ messages in thread From: Asmaa Mnebhi @ 2022-10-21 12:43 UTC (permalink / raw) To: Wolfram Sang, Adam Borowski Cc: Khalil Blaiech, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org LGTM. Thanks Wolfram! Acked-By: Asmaa Mnebhi <asmaa@nvidia.com> -----Original Message----- From: Wolfram Sang <wsa@kernel.org> Sent: Friday, October 21, 2022 2:43 AM To: Adam Borowski <kilobyte@angband.pl> Cc: Khalil Blaiech <kblaiech@nvidia.com>; Asmaa Mnebhi <asmaa@nvidia.com>; linux-i2c@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage On Mon, Oct 10, 2022 at 08:33:51PM +0200, Adam Borowski wrote: > This fixes maybe_unused warnings/errors. > > According to a comment during device tree removal, only ACPI is > supported, thus let's actually require it. > > Fixes: be18c5ede25da39a0eda541f6de3620a30cf731f > Signed-off-by: Adam Borowski <kilobyte@angband.pl> Applied to for-current, thanks! @Asmaa, @Khalil: normally, I will not skip the driver maintainer's ack but wait for it. I'd like to make an exception this time because I don't want to get another dozen of patches fixing this build warning. Since Asmaa already acked a similar patch, I hope this is okay with you. ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage 2022-10-21 6:43 ` Wolfram Sang 2022-10-21 6:47 ` Wolfram Sang 2022-10-21 12:43 ` Asmaa Mnebhi @ 2022-10-21 12:57 ` Khalil Blaiech 2 siblings, 0 replies; 5+ messages in thread From: Khalil Blaiech @ 2022-10-21 12:57 UTC (permalink / raw) To: Wolfram Sang, Adam Borowski Cc: Asmaa Mnebhi, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Fine with me. Thanks Wolfram. Acked-By: Khalil Blaiech <kblaiech@nvidia.com> Thanks, -Khalil -----Original Message----- From: Wolfram Sang <wsa@kernel.org> Sent: Friday, October 21, 2022 2:43 AM To: Adam Borowski <kilobyte@angband.pl> Cc: Khalil Blaiech <kblaiech@nvidia.com>; Asmaa Mnebhi <asmaa@nvidia.com>; linux-i2c@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage On Mon, Oct 10, 2022 at 08:33:51PM +0200, Adam Borowski wrote: > This fixes maybe_unused warnings/errors. > > According to a comment during device tree removal, only ACPI is > supported, thus let's actually require it. > > Fixes: be18c5ede25da39a0eda541f6de3620a30cf731f > Signed-off-by: Adam Borowski <kilobyte@angband.pl> Applied to for-current, thanks! @Asmaa, @Khalil: normally, I will not skip the driver maintainer's ack but wait for it. I'd like to make an exception this time because I don't want to get another dozen of patches fixing this build warning. Since Asmaa already acked a similar patch, I hope this is okay with you. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-10-21 12:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <S229853AbiJTWkg/20221020224036Z+12888@vger.kernel.org>
2022-10-10 18:33 ` [PATCH 5/6] i2c: mlxbf: depend on ACPI; clean away ifdeffage Adam Borowski
2022-10-21 6:43 ` Wolfram Sang
2022-10-21 6:47 ` Wolfram Sang
2022-10-21 12:43 ` Asmaa Mnebhi
2022-10-21 12:57 ` Khalil Blaiech
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox