Warning: This file is not a C or C++ file. It does not have highlighting.

1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Copyright (C) 2009 Texas Instruments, Inc
4 *
5 * Author: Miguel Aguilar <miguel.aguilar@ridgerun.com>
6 */
7
8#ifndef DAVINCI_KEYSCAN_H
9#define DAVINCI_KEYSCAN_H
10
11#include <linux/io.h>
12
13enum davinci_matrix_types {
14 DAVINCI_KEYSCAN_MATRIX_4X4,
15 DAVINCI_KEYSCAN_MATRIX_5X3,
16};
17
18struct davinci_ks_platform_data {
19 int (*device_enable)(struct device *dev);
20 unsigned short *keymap;
21 u32 keymapsize;
22 u8 rep:1;
23 u8 strobe;
24 u8 interval;
25 u8 matrix_type;
26};
27
28#endif
29
30

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of linux/include/linux/platform_data/keyscan-davinci.h