From: Peter Robinson Date: Mon, 20 Apr 2020 19:27:33 +0000 (+0100) Subject: [PATCH 2/6] dt-bindings: input: adopt Linux gpio-keys binding constants X-Git-Tag: archive/raspbian/2020.07+dfsg-2+rpi1^2^2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f35f36b2469dc64eb41f833456719e2cc55db623;p=u-boot.git [PATCH 2/6] dt-bindings: input: adopt Linux gpio-keys binding constants Sync the gpio-keys input bindings from linux 5.7-rc1. Signed-off-by: Peter Robinson Gbp-Pq: Topic pinebook-pro Gbp-Pq: Name 0002-dt-bindings-input-adopt-Linux-gpio-keys-binding-cons.patch --- diff --git a/include/dt-bindings/input/gpio-keys.h b/include/dt-bindings/input/gpio-keys.h new file mode 100644 index 000000000..8962df79e --- /dev/null +++ b/include/dt-bindings/input/gpio-keys.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * This header provides constants for gpio keys bindings. + */ + +#ifndef _DT_BINDINGS_GPIO_KEYS_H +#define _DT_BINDINGS_GPIO_KEYS_H + +#define EV_ACT_ANY 0x00 /* asserted or deasserted */ +#define EV_ACT_ASSERTED 0x01 /* asserted */ +#define EV_ACT_DEASSERTED 0x02 /* deasserted */ + +#endif /* _DT_BINDINGS_GPIO_KEYS_H */