Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14fdb924 authored by Guenter Roeck's avatar Guenter Roeck Committed by Dmitry Torokhov
Browse files

Input: keyboard - drop unnecessary calls to input_set_drvdata



If there is no call to dev_get_drvdata() or input_get_drvdata(),
the call to input_set_drvdata() is unnecessary and can be dropped.

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 2ea9c236
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -107,8 +107,6 @@ static int adp5520_keys_probe(struct platform_device *pdev)
	input->phys = "adp5520-keys/input0";
	input->dev.parent = &pdev->dev;

	input_set_drvdata(input, dev);

	input->id.bustype = BUS_I2C;
	input->id.vendor = 0x0001;
	input->id.product = 0x5520;
+0 −2
Original line number Diff line number Diff line
@@ -268,8 +268,6 @@ static int bfin_kpad_probe(struct platform_device *pdev)
	input->phys = "bf54x-keys/input0";
	input->dev.parent = &pdev->dev;

	input_set_drvdata(input, bf54x_kpad);

	input->id.bustype = BUS_HOST;
	input->id.vendor = 0x0001;
	input->id.product = 0x0001;
+0 −1
Original line number Diff line number Diff line
@@ -196,7 +196,6 @@ static int probe_maple_kbd(struct device *dev)
	__clear_bit(KEY_RESERVED, idev->keybit);

	input_set_capability(idev, EV_MSC, MSC_SCAN);
	input_set_drvdata(idev, kbd);

	error = input_register_device(idev);
	if (error)
+0 −2
Original line number Diff line number Diff line
@@ -75,8 +75,6 @@ static int opencores_kbd_probe(struct platform_device *pdev)
	input->name = pdev->name;
	input->phys = "opencores-kbd/input0";

	input_set_drvdata(input, opencores_kbd);

	input->id.bustype = BUS_HOST;
	input->id.vendor = 0x0001;
	input->id.product = 0x0001;
+0 −2
Original line number Diff line number Diff line
@@ -358,8 +358,6 @@ static int tca8418_keypad_probe(struct i2c_client *client,
		__set_bit(EV_REP, input->evbit);
	input_set_capability(input, EV_MSC, MSC_SCAN);

	input_set_drvdata(input, keypad_data);

	irq = client->irq;
	if (irq_is_gpio)
		irq = gpio_to_irq(irq);
Loading