Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * This header provides constants for most input bindings.
0004  *
0005  * Most input bindings include key code, matrix key code format.
0006  * In most cases, key code and matrix key code format uses
0007  * the standard values/macro defined in this header.
0008  */
0009 
0010 #ifndef _DT_BINDINGS_INPUT_INPUT_H
0011 #define _DT_BINDINGS_INPUT_INPUT_H
0012 
0013 #include "linux-event-codes.h"
0014 
0015 #define MATRIX_KEY(row, col, code)  \
0016     ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
0017 
0018 #endif /* _DT_BINDINGS_INPUT_INPUT_H */