Skip to contentSkip to conversation

platform/surface: hotplug: Correct inclusion for GPIO APIs

PATCH In review Andy Shevchenko 2 participants 2 messages Mar 20 – Mar 23

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/surface: hotplug: Correct inclusion for GPIO APIs

The modern GPIO APIs are available for users via linux/gpio/consumer.h. The linux/gpio.h is legacy header that is subject to remove. Hence replace the latter by the former in the driver.

---
 drivers/platform/surface/surface_hotplug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/surface/surface_hotplug.c +1 -1
index c0d83ed5a208..33a8a9d41900 100644
@@ -14,7 +14,7 @@
  */
 
 #include <linux/acpi.h>
-#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
Signature · 1 line
2.50.1
maintainer
#1 lore raw
Quoted 5 lines · Andy Shevchenko

The modern GPIO APIs are available for users via linux/gpio/consumer.h. The linux/gpio.h is legacy header that is subject to remove. Hence replace the latter by the former in the driver.

Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.

The list of commits applied:
[1/1] platform/surface: hotplug: Correct inclusion for GPIO APIs

      commit: c62bf0b0c7608b0b47548e0f52d65183ad6ce2eb

--
i.