Skip to content

Commit 360a348

Browse files
committed
Merge tag 'gpio-fixes-for-v6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull gpio fixes from Bartosz Golaszewski: - use -ENOTSUPP consistently in Intel GPIO drivers - don't include dt-bindings headers in gpio-swnode code - add missing of device table to gpio-lpc32xx and fix autoloading * tag 'gpio-fixes-for-v6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: gpiolib: swnode: Remove wrong header inclusion gpio: lpc32xx: fix module autoloading gpio: crystalcove: Use -ENOTSUPP consistently gpio: wcove: Use -ENOTSUPP consistently
2 parents e4add02 + 69ffed4 commit 360a348

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

drivers/gpio/gpio-crystalcove.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static inline int to_reg(int gpio, enum ctrl_register reg_type)
9292
case 0x5e:
9393
return GPIOPANELCTL;
9494
default:
95-
return -EOPNOTSUPP;
95+
return -ENOTSUPP;
9696
}
9797
}
9898

drivers/gpio/gpio-lpc32xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ static const struct of_device_id lpc32xx_gpio_of_match[] = {
529529
{ .compatible = "nxp,lpc3220-gpio", },
530530
{ },
531531
};
532+
MODULE_DEVICE_TABLE(of, lpc32xx_gpio_of_match);
532533

533534
static struct platform_driver lpc32xx_gpio_driver = {
534535
.driver = {

drivers/gpio/gpio-wcove.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static inline int to_reg(int gpio, enum ctrl_register type)
104104
unsigned int reg = type == CTRL_IN ? GPIO_IN_CTRL_BASE : GPIO_OUT_CTRL_BASE;
105105

106106
if (gpio >= WCOVE_GPIO_NUM)
107-
return -EOPNOTSUPP;
107+
return -ENOTSUPP;
108108

109109
return reg + gpio;
110110
}

include/linux/gpio/property.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#ifndef __LINUX_GPIO_PROPERTY_H
33
#define __LINUX_GPIO_PROPERTY_H
44

5-
#include <dt-bindings/gpio/gpio.h> /* for GPIO_* flags */
65
#include <linux/property.h>
76

87
#define PROPERTY_ENTRY_GPIO(_name_, _chip_node_, _idx_, _flags_) \

0 commit comments

Comments
 (0)