summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@kernel.org>2026-06-05 11:46:58 +0300
committerAndi Shyti <andi.shyti@kernel.org>2026-06-05 11:46:58 +0300
commitafd9ada24bdaf1fd12456ac5f8efaadcad10634c (patch)
tree218b4ade5d3eb93d94da03cbbee8a86325af7d4f /include/linux
parentd38e710fba1806974051972d69fbbd6c69b55734 (diff)
parentb5fafa01bdaade5253bd39317f5455d13e6efc7d (diff)
downloadlinux-afd9ada24bdaf1fd12456ac5f8efaadcad10634c.tar.xz
Merge tag 'ib-gpio-add-gpiod-is-single-ended-for-v7.2' into i2c/i2c-host
Immutable branch between the GPIO and I2C trees for v7.2-rc1 - add the gpiod_is_single_ended() helper function
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/gpio/consumer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h
index 3efb5cb1e1d1..8fb27f9aa67f 100644
--- a/include/linux/gpio/consumer.h
+++ b/include/linux/gpio/consumer.h
@@ -111,6 +111,7 @@ void devm_gpiod_unhinge(struct device *dev, struct gpio_desc *desc);
void devm_gpiod_put_array(struct device *dev, struct gpio_descs *descs);
int gpiod_get_direction(struct gpio_desc *desc);
+bool gpiod_is_single_ended(struct gpio_desc *desc);
int gpiod_direction_input(struct gpio_desc *desc);
int gpiod_direction_output(struct gpio_desc *desc, int value);
int gpiod_direction_output_raw(struct gpio_desc *desc, int value);
@@ -337,6 +338,10 @@ static inline int gpiod_get_direction(const struct gpio_desc *desc)
WARN_ON(desc);
return -ENOSYS;
}
+static inline bool gpiod_is_single_ended(struct gpio_desc *desc)
+{
+ return false;
+}
static inline int gpiod_direction_input(struct gpio_desc *desc)
{
/* GPIO can never have been requested */