Commit 8d13c764 authored by Stephan Gerhold's avatar Stephan Gerhold Committed by Dmitry Torokhov

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: default avatarStephan Gerhold <stephan@gerhold.net>
Reviewed-by: default avatarAndi Shyti <andi@etezian.org>
Link: https://lore.kernel.org/r/20191007203343.101466-2-stephan@gerhold.netSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 7ca7cb23
...@@ -446,8 +446,7 @@ static int mms114_probe(struct i2c_client *client, ...@@ -446,8 +446,7 @@ static int mms114_probe(struct i2c_client *client,
data->client = client; data->client = client;
data->input_dev = input_dev; data->input_dev = input_dev;
/* FIXME: switch to device_get_match_data() when available */ match_data = device_get_match_data(&client->dev);
match_data = of_device_get_match_data(&client->dev);
if (!match_data) if (!match_data)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment