提交 edd7a563 编写于 作者: W Wolfram Sang

i2c: core: always have a named variable in arguments

Much better to read and understand.
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 d68222d4
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册