Skip to content

Commit

Permalink
char: ipmi: convert to use i2c_new_client_device()
Browse files Browse the repository at this point in the history
Move away from the deprecated API.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Message-Id: <20200326210958.13051-2-wsa+renesas@sang-engineering.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
  • Loading branch information
Wolfram Sang authored and Corey Minyard committed May 14, 2020
1 parent ae83d0b commit 653d374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/ipmi/ipmi_ssif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 653d374

Please sign in to comment.