mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 17:40:53 +07:00
31a6296333
AD7142 and AD7147 are integrated capacitance-to-digital converters (CDCs) with on-chip environmental calibration for use in systems requiring a novel user input method. The AD7142 and AD7147 can interface to external capacitance sensors implementing functions such as buttons, scrollwheels, sliders, touchpads and so on. The chips don't restrict the specific usage. Depending on the hardware connection, one special target board can include one or several these components. The platform_data for the device's "struct device" holds these information. The data-struct defined in head file descript the hardware feature of button/scrollwheel/slider/touchpad components on target boards, which need be filled in the arch/mach-/. As the result, the driver is independent of boards. It gets the components layout from the platform_data, registers related devices, fullfills the algorithms and state machines for these components and report related input events to up level. Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
27 lines
695 B
C
27 lines
695 B
C
/*
|
|
* AD714X CapTouch Programmable Controller driver (bus interfaces)
|
|
*
|
|
* Copyright 2009 Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2 or later.
|
|
*/
|
|
|
|
#ifndef _AD714X_H_
|
|
#define _AD714X_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct device;
|
|
struct ad714x_chip;
|
|
|
|
typedef int (*ad714x_read_t)(struct device *, unsigned short, unsigned short *);
|
|
typedef int (*ad714x_write_t)(struct device *, unsigned short, unsigned short);
|
|
|
|
int ad714x_disable(struct ad714x_chip *ad714x);
|
|
int ad714x_enable(struct ad714x_chip *ad714x);
|
|
struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq,
|
|
ad714x_read_t read, ad714x_write_t write);
|
|
void ad714x_remove(struct ad714x_chip *ad714x);
|
|
|
|
#endif
|