summaryrefslogtreecommitdiff
path: root/drivers/i2c/i2c-core-base.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2019-06-03 11:25:33 +0300
committerWolfram Sang <wsa@the-dreams.de>2019-06-15 00:24:33 +0300
commitedd7a5639f83c2d2bb6ee021addac1bc4624a822 (patch)
treefac264b9c2369cab48282ea90dff14ddd2079fa7 /drivers/i2c/i2c-core-base.c
parentd68222d4d6647611be5a32c80a53a145e7c80ce9 (diff)
downloadlinux-edd7a5639f83c2d2bb6ee021addac1bc4624a822.tar.xz
i2c: core: always have a named variable in arguments
Much better to read and understand. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/i2c-core-base.c')
-rw-r--r--drivers/i2c/i2c-core-base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c
index d389d4fb0623..e7d5ada40d48 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -1671,7 +1671,7 @@ EXPORT_SYMBOL_GPL(i2c_parse_fw_timings);
/* ------------------------------------------------------------------------- */
-int i2c_for_each_dev(void *data, int (*fn)(struct device *, void *))
+int i2c_for_each_dev(void *data, int (*fn)(struct device *dev, void *data))
{
int res;
@@ -2284,7 +2284,7 @@ struct i2c_client *
i2c_new_probed_device(struct i2c_adapter *adap,
struct i2c_board_info *info,
unsigned short const *addr_list,
- int (*probe)(struct i2c_adapter *, unsigned short addr))
+ int (*probe)(struct i2c_adapter *adap, unsigned short addr))
{
int i;