提交 ed77bdf4 编写于 作者: G Guenter Roeck 提交者: Dmitry Torokhov

Input: synaptics-rmi4 - use local variables consistently

If a function declares a variable to access a structure element,
use it conssistently.
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 630a7fa0
...@@ -262,10 +262,10 @@ int __rmi_register_function_handler(struct rmi_function_handler *handler, ...@@ -262,10 +262,10 @@ int __rmi_register_function_handler(struct rmi_function_handler *handler,
driver->probe = rmi_function_probe; driver->probe = rmi_function_probe;
driver->remove = rmi_function_remove; driver->remove = rmi_function_remove;
error = driver_register(&handler->driver); error = driver_register(driver);
if (error) { if (error) {
pr_err("driver_register() failed for %s, error: %d\n", pr_err("driver_register() failed for %s, error: %d\n",
handler->driver.name, error); driver->name, error);
return error; return error;
} }
......
...@@ -837,7 +837,7 @@ static int rmi_create_function(struct rmi_device *rmi_dev, ...@@ -837,7 +837,7 @@ static int rmi_create_function(struct rmi_device *rmi_dev,
void *ctx, const struct pdt_entry *pdt) void *ctx, const struct pdt_entry *pdt)
{ {
struct device *dev = &rmi_dev->dev; struct device *dev = &rmi_dev->dev;
struct rmi_driver_data *data = dev_get_drvdata(&rmi_dev->dev); struct rmi_driver_data *data = dev_get_drvdata(dev);
int *current_irq_count = ctx; int *current_irq_count = ctx;
struct rmi_function *fn; struct rmi_function *fn;
int i; int i;
...@@ -1041,7 +1041,7 @@ int rmi_probe_interrupts(struct rmi_driver_data *data) ...@@ -1041,7 +1041,7 @@ int rmi_probe_interrupts(struct rmi_driver_data *data)
} }
if (data->bootloader_mode) if (data->bootloader_mode)
dev_warn(&rmi_dev->dev, "Device in bootloader mode.\n"); dev_warn(dev, "Device in bootloader mode.\n");
data->irq_count = irq_count; data->irq_count = irq_count;
data->num_of_irq_regs = (data->irq_count + 7) / 8; data->num_of_irq_regs = (data->irq_count + 7) / 8;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册