Files
tegra-public-dts/include/kernel/dt-bindings/input/input.h
Bitan Biswas 2101ccc1b1 t23x: nv-public: add dt-bindings header
Add t23x nv-public dt-bindings headers so
that generic-dts compilation errors can be fixed.

bug 4197981

Change-Id: I00f3a1f02540cfe5eeb4be51defe985d0857654f
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2978965
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/tegra-public-dts/+/3168935
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
2024-07-16 02:20:15 -07:00

19 lines
538 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants for most input bindings.
*
* Most input bindings include key code, matrix key code format.
* In most cases, key code and matrix key code format uses
* the standard values/macro defined in this header.
*/
#ifndef _DT_BINDINGS_INPUT_INPUT_H
#define _DT_BINDINGS_INPUT_INPUT_H
#include "linux-event-codes.h"
#define MATRIX_KEY(row, col, code) \
((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
#endif /* _DT_BINDINGS_INPUT_INPUT_H */