Skip to content

Commit 8d13c76

Browse files
stephan-ghdtor
authored andcommitted
Input: mms114 - use device_get_match_data
device_get_match_data is available now, so we can replace the call to of_device_get_match_data and remove the FIXME comment. Signed-off-by: Stephan Gerhold <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 7ca7cb2 commit 8d13c76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/input/touchscreen/mms114.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,7 @@ static int mms114_probe(struct i2c_client *client,
446446
data->client = client;
447447
data->input_dev = input_dev;
448448

449-
/* FIXME: switch to device_get_match_data() when available */
450-
match_data = of_device_get_match_data(&client->dev);
449+
match_data = device_get_match_data(&client->dev);
451450
if (!match_data)
452451
return -EINVAL;
453452

0 commit comments

Comments
 (0)