mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
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>
This commit is contained in:
parent
ad56814fcc
commit
d7ddf15414
6 changed files with 7 additions and 8 deletions
|
@ -2509,7 +2509,7 @@ static void mxt_debug_init(struct mxt_data *data)
|
||||||
dbg->t37_pages = MXT1386_COLUMNS * MXT1386_PAGES_PER_COLUMN;
|
dbg->t37_pages = MXT1386_COLUMNS * MXT1386_PAGES_PER_COLUMN;
|
||||||
else
|
else
|
||||||
dbg->t37_pages = DIV_ROUND_UP(data->xsize *
|
dbg->t37_pages = DIV_ROUND_UP(data->xsize *
|
||||||
data->info.matrix_ysize *
|
info->matrix_ysize *
|
||||||
sizeof(u16),
|
sizeof(u16),
|
||||||
sizeof(dbg->t37_buf->data));
|
sizeof(dbg->t37_buf->data));
|
||||||
|
|
||||||
|
|
|
@ -507,7 +507,7 @@ static int mx25_tcq_probe(struct platform_device *pdev)
|
||||||
struct device *dev = &pdev->dev;
|
struct device *dev = &pdev->dev;
|
||||||
struct input_dev *idev;
|
struct input_dev *idev;
|
||||||
struct mx25_tcq_priv *priv;
|
struct mx25_tcq_priv *priv;
|
||||||
struct mx25_tsadc *tsadc = dev_get_drvdata(pdev->dev.parent);
|
struct mx25_tsadc *tsadc = dev_get_drvdata(dev->parent);
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
void __iomem *mem;
|
void __iomem *mem;
|
||||||
int error;
|
int error;
|
||||||
|
|
|
@ -280,7 +280,7 @@ static int ili210x_i2c_probe(struct i2c_client *client,
|
||||||
goto err_remove_sysfs;
|
goto err_remove_sysfs;
|
||||||
}
|
}
|
||||||
|
|
||||||
device_init_wakeup(&client->dev, 1);
|
device_init_wakeup(dev, 1);
|
||||||
|
|
||||||
dev_dbg(dev,
|
dev_dbg(dev,
|
||||||
"ILI210x initialized (IRQ: %d), firmware version %d.%d.%d",
|
"ILI210x initialized (IRQ: %d), firmware version %d.%d.%d",
|
||||||
|
|
|
@ -461,7 +461,7 @@ static int pixcir_i2c_ts_probe(struct i2c_client *client,
|
||||||
if (error)
|
if (error)
|
||||||
return error;
|
return error;
|
||||||
} else {
|
} else {
|
||||||
dev_err(&client->dev, "platform data not defined\n");
|
dev_err(dev, "platform data not defined\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -483,7 +483,7 @@ static int pixcir_i2c_ts_probe(struct i2c_client *client,
|
||||||
input->id.bustype = BUS_I2C;
|
input->id.bustype = BUS_I2C;
|
||||||
input->open = pixcir_input_open;
|
input->open = pixcir_input_open;
|
||||||
input->close = pixcir_input_close;
|
input->close = pixcir_input_close;
|
||||||
input->dev.parent = &client->dev;
|
input->dev.parent = dev;
|
||||||
|
|
||||||
if (pdata) {
|
if (pdata) {
|
||||||
input_set_abs_params(input, ABS_MT_POSITION_X, 0, pdata->x_max, 0, 0);
|
input_set_abs_params(input, ABS_MT_POSITION_X, 0, pdata->x_max, 0, 0);
|
||||||
|
|
|
@ -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);
|
error = devm_add_action(dev, rohm_ts_remove_sysfs_group, dev);
|
||||||
if (error) {
|
if (error) {
|
||||||
rohm_ts_remove_sysfs_group(dev);
|
rohm_ts_remove_sysfs_group(dev);
|
||||||
dev_err(&client->dev,
|
dev_err(dev, "Failed to add sysfs cleanup action: %d\n",
|
||||||
"Failed to add sysfs cleanup action: %d\n",
|
|
||||||
error);
|
error);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
|
@ -250,7 +250,7 @@ static int s3c2410ts_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
ts.dev = dev;
|
ts.dev = dev;
|
||||||
|
|
||||||
info = dev_get_platdata(&pdev->dev);
|
info = dev_get_platdata(dev);
|
||||||
if (!info) {
|
if (!info) {
|
||||||
dev_err(dev, "no platform data, cannot attach\n");
|
dev_err(dev, "no platform data, cannot attach\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Reference in a new issue