]> git.baikalelectronics.ru Git - kernel.git/commit
Input: remove race when instantiating polled device attributes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 28 Apr 2014 20:16:00 +0000 (13:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:40:03 +0000 (16:40 -0700)
commit82d74289de863bb5612da36cce66accf7817f3f1
tree6fb8fb7babfc6194047603a859ee5f60da190a62
parent110c2d378bb1555e7b7242d6da859e22004e731b
Input: remove race when instantiating polled device attributes

Polled device's attributes controlling polling rate and whether polling is
enabled are attached to input device. We should have device core
instantiate them for us, so that they are created by the time new device
notification is sent to userspace, instead of doing it ourselves
afterwards.

Tested-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input-polldev.c