aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/mms114.c
diff options
context:
space:
mode:
authorStephan Gerhold <stephan@gerhold.net>2019-10-08 16:48:02 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-11-11 16:25:05 -0800
commit8d13c7642fabb0f9fb044041ebcce23fb002d86b (patch)
tree8fb32ddcae1233f0b60b72ea248e79412c524c91 /drivers/input/touchscreen/mms114.c
parentMerge branch 'ili2xxx-touchscreen' into next (diff)
downloadlinux-dev-8d13c7642fabb0f9fb044041ebcce23fb002d86b.tar.xz
linux-dev-8d13c7642fabb0f9fb044041ebcce23fb002d86b.zip
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 <stephan@gerhold.net> Reviewed-by: Andi Shyti <andi@etezian.org> Link: https://lore.kernel.org/r/20191007203343.101466-2-stephan@gerhold.net Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-rw-r--r--drivers/input/touchscreen/mms114.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c
index a5ab774da4cc..69c6d559eeb0 100644
--- a/drivers/input/touchscreen/mms114.c
+++ b/drivers/input/touchscreen/mms114.c
@@ -446,8 +446,7 @@ static int mms114_probe(struct i2c_client *client,
data->client = client;
data->input_dev = input_dev;
- /* FIXME: switch to device_get_match_data() when available */
- match_data = of_device_get_match_data(&client->dev);
+ match_data = device_get_match_data(&client->dev);
if (!match_data)
return -EINVAL;