mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
![Fabien Marteau](/assets/img/avatar_default.png)
This is driver for EasyPoint AS5011 2 axis joystick chip. This chip is plugged on an I2C bus. Tested on ARM processor (i.MX27). Signed-off-by: Fabien Marteau <fabien.marteau@armadeus.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
20 lines
545 B
C
20 lines
545 B
C
#ifndef _AS5011_H
|
|
#define _AS5011_H
|
|
|
|
/*
|
|
* Copyright (c) 2010, 2011 Fabien Marteau <fabien.marteau@armadeus.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published by
|
|
* the Free Software Foundation.
|
|
*/
|
|
|
|
struct as5011_platform_data {
|
|
unsigned int button_gpio;
|
|
unsigned int axis_irq; /* irq number */
|
|
unsigned long axis_irqflags;
|
|
char xp, xn; /* threshold for x axis */
|
|
char yp, yn; /* threshold for y axis */
|
|
};
|
|
|
|
#endif /* _AS5011_H */
|