提交 653d3747 编写于 作者: W Wolfram Sang 提交者: Corey Minyard

char: ipmi: convert to use i2c_new_client_device()

Move away from the deprecated API.
Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
Message-Id: <20200326210958.13051-2-wsa+renesas@sang-engineering.com>
Signed-off-by: NCorey Minyard <cminyard@mvista.com>
上级 ae83d0b4
......@@ -1947,8 +1947,8 @@ static int ssif_adapter_handler(struct device *adev, void *opaque)
if (adev->type != &i2c_adapter_type)
return 0;
addr_info->added_client = i2c_new_device(to_i2c_adapter(adev),
&addr_info->binfo);
addr_info->added_client = i2c_new_client_device(to_i2c_adapter(adev),
&addr_info->binfo);
if (!addr_info->adapter_name)
return 1; /* Only try the first I2C adapter by default. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册