Input: ar1021-i2c - drop redundant input->dev.parent assignment

devm_input_allocate_device() already initializes input->dev.parent to
the supplied parent device, so the explicit assignment in
ar1021_i2c_probe() is redundant. Remove it.

Assisted-by: LLM
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Dmitry Torokhov 2026-10-07 23:19:57 -07:00
parent 9c7c99e6d4
commit 6deb2aebcc

View File

@ -111,7 +111,6 @@ static int ar1021_i2c_probe(struct i2c_client *client)
input->name = "ar1021 I2C Touchscreen";
input->id.bustype = BUS_I2C;
input->dev.parent = &client->dev;
input->open = ar1021_i2c_open;
input->close = ar1021_i2c_close;