Skip to contentSkip to conversation

platform/x86: Add IIO dependency to ACPI_TOSHIBA

PATCH In review Azael Avalos 2 participants 3 messages Jun 28, 2016 – Jun 29, 2016 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: Add IIO dependency to ACPI_TOSHIBA

The toshiba_acpi driver added support to the accelerometer axis via the IIO subsystem, but failed to add the dependency to the Kconfig file, making the driver fail to compile if the IIO subsystem is not selected.

This patch adds a depedency to the IIO subsystem to the ACPI_TOSHIBA entry in Kconfig to avoid such build failure.

---
Darren, Jonathan:
I just received a few mails from the kbuild test robot informing the build failure, as a fix for this I just added a hard dependency to IIO, but maybe Jonathan can weigh in and provide me with a better alternative (perhaps some ifdefs) as to the hard IIO dependency.

 drivers/platform/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/Kconfig +1 -0
index c06bb85..633fc5c 100644
@@ -669,6 +669,7 @@ config ACPI_TOSHIBA
 	depends on SERIO_I8042 || SERIO_I8042 = n
 	depends on ACPI_VIDEO || ACPI_VIDEO = n
 	depends on RFKILL || RFKILL = n
+	depends on IIO
 	select INPUT_POLLDEV
 	select INPUT_SPARSEKMAP
 	---help---
Signature · 1 line
2.8.4
#1 lore raw
Quoted 8 lines · Azael Avalos

The toshiba_acpi driver added support to the accelerometer axis via the IIO subsystem, but failed to add the dependency to the Kconfig file, making the driver fail to compile if the IIO subsystem is not selected.

This patch adds a depedency to the IIO subsystem to the ACPI_TOSHIBA entry in Kconfig to avoid such build failure.

Quoted 7 lines

---
Darren, Jonathan:
I just received a few mails from the kbuild test robot informing the build failure, as a fix for this I just added a hard dependency to IIO, but maybe Jonathan can weigh in and provide me with a better alternative (perhaps some ifdefs) as to the hard IIO dependency.

Don't you just love the giant kernel builder in the sky?

Rather than add this separately and leave a potential build failure in the kernel, I'll add this line to:

toshiba_acpi: Add IIO interface for accelerometer axis data

Quoted 20 lines
 drivers/platform/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/Kconfig +1 -0
index c06bb85..633fc5c 100644
@@ -669,6 +669,7 @@ config ACPI_TOSHIBA
 	depends on SERIO_I8042 || SERIO_I8042 = n
 	depends on ACPI_VIDEO || ACPI_VIDEO = n
 	depends on RFKILL || RFKILL = n
+	depends on IIO
 	select INPUT_POLLDEV
 	select INPUT_SPARSEKMAP
 	---help---
Signature · 1 line
2.8.4
Signature · 2 lines
Darren Hart
Intel Open Source Technology Center
#2 lore raw

2016-06-28 23:16 GMT-06:00 Darren Hart <[email protected]>:

Quoted 17 lines · Azael Avalos
Quoted 8 lines

The toshiba_acpi driver added support to the accelerometer axis via the IIO subsystem, but failed to add the dependency to the Kconfig file, making the driver fail to compile if the IIO subsystem is not selected.

This patch adds a depedency to the IIO subsystem to the ACPI_TOSHIBA entry in Kconfig to avoid such build failure.

Quoted 7 lines

---
Darren, Jonathan:
I just received a few mails from the kbuild test robot informing the build failure, as a fix for this I just added a hard dependency to IIO, but maybe Jonathan can weigh in and provide me with a better alternative (perhaps some ifdefs) as to the hard IIO dependency.

Quoted 1 line

Don't you just love the giant kernel builder in the sky?

I certainly do, the ever watching eye XD

Quoted 5 lines

Rather than add this separately and leave a potential build failure in the kernel, I'll add this line to:

toshiba_acpi: Add IIO interface for accelerometer axis data

Great :-)

Quoted 25 lines
Quoted 18 lines

 drivers/platform/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/Kconfig +1 -1
index c06bb85..633fc5c 100644
@@ -669,6 +669,7 @@ config ACPI_TOSHIBA
      depends on SERIO_I8042 || SERIO_I8042 = n
      depends on ACPI_VIDEO || ACPI_VIDEO = n
      depends on RFKILL || RFKILL = n
+     depends on IIO
      select INPUT_POLLDEV
      select INPUT_SPARSEKMAP
      ---help---
--
Quoted 3 lines

2.8.4

--
Darren Hart
Intel Open Source Technology Center

Signature · 1 line
-- El mundo apesta y vosotros apestais tambien --