Lines Matching defs:ads7846

12  *  - omap_ts.[hc], ads7846.h, ts_osk.c
32 #include <linux/spi/ads7846.h>
40 * tested on other ads7846 devices (OSK/Mistral, Lubbock, Spitz).
41 * TSC2046 is just newer ads7846 silicon.
97 struct ads7846 {
220 static int get_pendown_state(struct ads7846 *ts)
228 static void ads7846_report_pen_up(struct ads7846 *ts)
241 static void ads7846_stop(struct ads7846 *ts)
253 static void ads7846_restart(struct ads7846 *ts)
268 static void __ads7846_disable(struct ads7846 *ts)
280 static void __ads7846_enable(struct ads7846 *ts)
291 static void ads7846_disable(struct ads7846 *ts)
306 static void ads7846_enable(struct ads7846 *ts)
326 * ads7846 lets that pin be unconnected, to use internal vREF.
357 struct ads7846 *ts = dev_get_drvdata(dev);
432 struct ads7846 *ts = dev_get_drvdata(dev);
470 struct ads7846 *ts = dev_get_drvdata(dev); \
485 static inline unsigned null_adjust(struct ads7846 *ts, ssize_t v)
498 static inline unsigned vaux_adjust(struct ads7846 *ts, ssize_t v)
509 static inline unsigned vbatt_adjust(struct ads7846 *ts, ssize_t v)
513 /* ads7846 has a resistor ladder to scale this signal down */
527 struct ads7846 *ts = dev_get_drvdata(dev);
551 static int ads784x_hwmon_register(struct spi_device *spi, struct ads7846 *ts)
580 struct ads7846 *ts)
588 struct ads7846 *ts)
594 struct ads7846 *ts)
602 struct ads7846 *ts = dev_get_drvdata(dev);
612 struct ads7846 *ts = dev_get_drvdata(dev);
621 struct ads7846 *ts = dev_get_drvdata(dev);
657 struct ads7846 *ts = ads;
712 static void ads7846_set_cmd_val(struct ads7846 *ts, enum ads7846_cmds cmd_idx,
774 static int ads7846_filter(struct ads7846 *ts)
807 static void ads7846_read_state(struct ads7846 *ts)
835 static void ads7846_report_state(struct ads7846 *ts)
919 struct ads7846 *ts = handle;
927 struct ads7846 *ts = handle;
952 struct ads7846 *ts = dev_get_drvdata(dev);
974 struct ads7846 *ts = dev_get_drvdata(dev);
997 struct ads7846 *ts,
1038 static int ads7846_setup_spi_msg(struct ads7846 *ts,
1135 { .compatible = "ti,ads7846", .data = (void *) 7846 },
1221 struct ads7846 *ts;
1250 ts = kzalloc(sizeof(struct ads7846), GFP_KERNEL);
1442 struct ads7846 *ts = spi_get_drvdata(spi);
1476 .name = "ads7846",
1488 MODULE_ALIAS("spi:ads7846");