diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-03-01 00:57:21 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-03-01 20:42:43 +0300 |
commit | af160c542e40c133b12b18d9dddd4fc555611ef1 (patch) | |
tree | 81f647badef896d23588eea196f903a58df4a7a3 /drivers/input/touchscreen/ad7879.c | |
parent | 6afb6b6ed866c743629b4dd9ac381e418222cc98 (diff) | |
download | linux-af160c542e40c133b12b18d9dddd4fc555611ef1.tar.xz |
Input: ad7879 - make sure we set up drvdata
The conversion to devm accidentally removed setting up of I2C client data
upon successful probe of the touchscreen. Let's move this setting into the
core, so we do not forger about it again.
Fixes: 381f688eee3d ("Input: ad7879 - use more devm interfaces")
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/ad7879.c')
-rw-r--r-- | drivers/input/touchscreen/ad7879.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c index 1bd870277e1a..52daaa4edc67 100644 --- a/drivers/input/touchscreen/ad7879.c +++ b/drivers/input/touchscreen/ad7879.c @@ -680,6 +680,8 @@ struct ad7879 *ad7879_probe(struct device *dev, struct regmap *regmap, if (err) return ERR_PTR(err); + dev_set_drvdata(dev, ts); + return 0; } EXPORT_SYMBOL(ad7879_probe); |