* [PATCH v1 1/1] platform/surface: hotplug: Correct inclusion for GPIO APIs
@ 2026-03-20 22:11 Andy Shevchenko
2026-03-23 10:46 ` Ilpo Järvinen
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2026-03-20 22:11 UTC (permalink / raw)
To: Andy Shevchenko, platform-driver-x86, linux-kernel
Cc: Maximilian Luz, Hans de Goede, Ilpo Järvinen
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.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/platform/surface/surface_hotplug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/surface/surface_hotplug.c b/drivers/platform/surface/surface_hotplug.c
index c0d83ed5a208..33a8a9d41900 100644
--- a/drivers/platform/surface/surface_hotplug.c
+++ b/drivers/platform/surface/surface_hotplug.c
@@ -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>
--
2.50.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/1] platform/surface: hotplug: Correct inclusion for GPIO APIs
2026-03-20 22:11 [PATCH v1 1/1] platform/surface: hotplug: Correct inclusion for GPIO APIs Andy Shevchenko
@ 2026-03-23 10:46 ` Ilpo Järvinen
0 siblings, 0 replies; 2+ messages in thread
From: Ilpo Järvinen @ 2026-03-23 10:46 UTC (permalink / raw)
To: platform-driver-x86, linux-kernel, Andy Shevchenko
Cc: Maximilian Luz, Hans de Goede
On Fri, 20 Mar 2026 23:11:43 +0100, Andy Shevchenko wrote:
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-23 10:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-20 22:11 [PATCH v1 1/1] platform/surface: hotplug: Correct inclusion for GPIO APIs Andy Shevchenko
2026-03-23 10:46 ` Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome