diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-01-22 10:46:47 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-22 10:53:17 +0300 |
commit | d7ddf15414dd598b9b875664e6b7aebe6c988f5d (patch) | |
tree | 3abd8a2b6d967614fc1fb2c67706e38794b52539 /drivers/input/touchscreen/rohm_bu21023.c | |
parent | ad56814fccfba3fe3613fa4d9accff3816786f3c (diff) | |
download | linux-d7ddf15414dd598b9b875664e6b7aebe6c988f5d.tar.xz |
Input: touchscreen - use local variables consistently
If a function declares a variable to access a structure element,
use it consistently.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/rohm_bu21023.c')
-rw-r--r-- | drivers/input/touchscreen/rohm_bu21023.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/rohm_bu21023.c b/drivers/input/touchscreen/rohm_bu21023.c index 611156a2ef80..eeaf6ff03597 100644 --- a/drivers/input/touchscreen/rohm_bu21023.c +++ b/drivers/input/touchscreen/rohm_bu21023.c @@ -1189,8 +1189,7 @@ static int rohm_bu21023_i2c_probe(struct i2c_client *client, error = devm_add_action(dev, rohm_ts_remove_sysfs_group, dev); if (error) { rohm_ts_remove_sysfs_group(dev); - dev_err(&client->dev, - "Failed to add sysfs cleanup action: %d\n", + dev_err(dev, "Failed to add sysfs cleanup action: %d\n", error); return error; } |