mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: reduce raciness when input handlers disconnect Input: ucb1x00 - do not access input_dev->private directly Input: logips2pp - fix typo in Kconfig Input: db9 - do not ignore dev2 module parameter
This commit is contained in:
commit
0b662c6484
7 changed files with 10 additions and 9 deletions
|
|
@ -291,7 +291,7 @@ static void ucb1x00_ts_irq(int idx, void *id)
|
|||
|
||||
static int ucb1x00_ts_open(struct input_dev *idev)
|
||||
{
|
||||
struct ucb1x00_ts *ts = idev->private;
|
||||
struct ucb1x00_ts *ts = input_get_drvdata(idev);
|
||||
int ret = 0;
|
||||
|
||||
BUG_ON(ts->rtask);
|
||||
|
|
@ -328,7 +328,7 @@ static int ucb1x00_ts_open(struct input_dev *idev)
|
|||
*/
|
||||
static void ucb1x00_ts_close(struct input_dev *idev)
|
||||
{
|
||||
struct ucb1x00_ts *ts = idev->private;
|
||||
struct ucb1x00_ts *ts = input_get_drvdata(idev);
|
||||
|
||||
if (ts->rtask)
|
||||
kthread_stop(ts->rtask);
|
||||
|
|
@ -380,7 +380,6 @@ static int ucb1x00_ts_add(struct ucb1x00_dev *dev)
|
|||
ts->idev = idev;
|
||||
ts->adcsync = adcsync ? UCB_SYNC : UCB_NOSYNC;
|
||||
|
||||
idev->private = ts;
|
||||
idev->name = "Touchscreen panel";
|
||||
idev->id.product = ts->ucb->id;
|
||||
idev->open = ucb1x00_ts_open;
|
||||
|
|
@ -391,6 +390,8 @@ static int ucb1x00_ts_add(struct ucb1x00_dev *dev)
|
|||
__set_bit(ABS_Y, idev->absbit);
|
||||
__set_bit(ABS_PRESSURE, idev->absbit);
|
||||
|
||||
input_set_drvdata(idev, ts);
|
||||
|
||||
err = input_register_device(idev);
|
||||
if (err)
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Reference in a new issue