tsc2005.c (83dcf400be7165af938dbd6b8ce6805c754701db) | tsc2005.c (4200e831e4a8fd09fa4e78de2e571ab270c12d06) |
---|---|
1/* 2 * TSC2005 touchscreen driver 3 * 4 * Copyright (C) 2006-2010 Nokia Corporation 5 * 6 * Author: Lauri Leukkunen <lauri.leukkunen@nokia.com> 7 * based on TSC2301 driver by Klaus K. Pedersen <klaus.k.pedersen@nokia.com> 8 * --- 695 unchanged lines hidden (view full) --- 704 input_dev->evbit[0] = BIT(EV_ABS) | BIT(EV_KEY); 705 input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); 706 707 input_set_abs_params(input_dev, ABS_X, 0, max_x, fudge_x, 0); 708 input_set_abs_params(input_dev, ABS_Y, 0, max_y, fudge_y, 0); 709 input_set_abs_params(input_dev, ABS_PRESSURE, 0, max_p, fudge_p, 0); 710 711 if (np) | 1/* 2 * TSC2005 touchscreen driver 3 * 4 * Copyright (C) 2006-2010 Nokia Corporation 5 * 6 * Author: Lauri Leukkunen <lauri.leukkunen@nokia.com> 7 * based on TSC2301 driver by Klaus K. Pedersen <klaus.k.pedersen@nokia.com> 8 * --- 695 unchanged lines hidden (view full) --- 704 input_dev->evbit[0] = BIT(EV_ABS) | BIT(EV_KEY); 705 input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); 706 707 input_set_abs_params(input_dev, ABS_X, 0, max_x, fudge_x, 0); 708 input_set_abs_params(input_dev, ABS_Y, 0, max_y, fudge_y, 0); 709 input_set_abs_params(input_dev, ABS_PRESSURE, 0, max_p, fudge_p, 0); 710 711 if (np) |
712 touchscreen_parse_of_params(input_dev, false); | 712 touchscreen_parse_properties(input_dev, false); |
713 714 input_dev->open = tsc2005_open; 715 input_dev->close = tsc2005_close; 716 717 input_set_drvdata(input_dev, ts); 718 719 /* Ensure the touchscreen is off */ 720 tsc2005_stop_scan(ts); --- 107 unchanged lines hidden --- | 713 714 input_dev->open = tsc2005_open; 715 input_dev->close = tsc2005_close; 716 717 input_set_drvdata(input_dev, ts); 718 719 /* Ensure the touchscreen is off */ 720 tsc2005_stop_scan(ts); --- 107 unchanged lines hidden --- |