mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-16 11:32:41 +00:00
Input: remove private member from input_dev structure
Everyone should be using input_{get|set}_drvdata() by now. Alias them to dev_{get|set}_drvdata() and remove ->private. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
a7097ff89c
commit
3797fec171
2 changed files with 5 additions and 9 deletions
|
@ -73,7 +73,7 @@ static void input_polled_device_work(struct work_struct *work)
|
|||
|
||||
static int input_open_polled_device(struct input_dev *input)
|
||||
{
|
||||
struct input_polled_dev *dev = input->private;
|
||||
struct input_polled_dev *dev = input_get_drvdata(input);
|
||||
int error;
|
||||
|
||||
error = input_polldev_start_workqueue();
|
||||
|
@ -91,7 +91,7 @@ static int input_open_polled_device(struct input_dev *input)
|
|||
|
||||
static void input_close_polled_device(struct input_dev *input)
|
||||
{
|
||||
struct input_polled_dev *dev = input->private;
|
||||
struct input_polled_dev *dev = input_get_drvdata(input);
|
||||
|
||||
cancel_delayed_work_sync(&dev->work);
|
||||
input_polldev_stop_workqueue();
|
||||
|
@ -151,10 +151,10 @@ int input_register_polled_device(struct input_polled_dev *dev)
|
|||
{
|
||||
struct input_dev *input = dev->input;
|
||||
|
||||
input_set_drvdata(input, dev);
|
||||
INIT_DELAYED_WORK(&dev->work, input_polled_device_work);
|
||||
if (!dev->poll_interval)
|
||||
dev->poll_interval = 500;
|
||||
input->private = dev;
|
||||
input->open = input_open_polled_device;
|
||||
input->close = input_close_polled_device;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue