mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 08:49:45 +00:00
![Thomas Gleixner](/assets/img/avatar_default.png)
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation version 2 of the license only this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 59 temple place suite 330 boston ma 02111 1307 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 2 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190531081038.287952587@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
34 lines
746 B
C
34 lines
746 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* lm8323.h - Configuration for LM8323 keypad driver.
|
|
*/
|
|
|
|
#ifndef __LINUX_LM8323_H
|
|
#define __LINUX_LM8323_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
/*
|
|
* Largest keycode that the chip can send, plus one,
|
|
* so keys can be mapped directly at the index of the
|
|
* LM8323 keycode instead of subtracting one.
|
|
*/
|
|
#define LM8323_KEYMAP_SIZE (0x7f + 1)
|
|
|
|
#define LM8323_NUM_PWMS 3
|
|
|
|
struct lm8323_platform_data {
|
|
int debounce_time; /* Time to watch for key bouncing, in ms. */
|
|
int active_time; /* Idle time until sleep, in ms. */
|
|
|
|
int size_x;
|
|
int size_y;
|
|
bool repeat;
|
|
const unsigned short *keymap;
|
|
|
|
const char *pwm_names[LM8323_NUM_PWMS];
|
|
|
|
const char *name; /* Device name. */
|
|
};
|
|
|
|
#endif /* __LINUX_LM8323_H */
|