Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

misc: fsa9480: 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>

authored by

Wolfram Sang and committed by
Greg Kroah-Hartman
ee3095c1 3cc2decc

+1 -1
+1 -1
drivers/misc/fsa9480.c
··· 410 410 static int fsa9480_probe(struct i2c_client *client, 411 411 const struct i2c_device_id *id) 412 412 { 413 - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); 413 + struct i2c_adapter *adapter = client->adapter; 414 414 struct fsa9480_usbsw *usbsw; 415 415 int ret = 0; 416 416