1
0
Fork 0

misc: isl29003: simplify getting the adapter of a client

We have a dedicated pointer for that, so use it. Much easier to read and
less computation involved.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
alistair/sunxi64-5.4-dsi
Wolfram Sang 2019-06-08 12:55:52 +02:00 committed by Greg Kroah-Hartman
parent 0154ec71d5
commit 1a0911a06c
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ static int isl29003_init_client(struct i2c_client *client)
static int isl29003_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
struct i2c_adapter *adapter = client->adapter;
struct isl29003_data *data;
int err = 0;