summaryrefslogtreecommitdiff
path: root/drivers/misc/fsa9480.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-06-08 12:55:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-10 17:29:50 +0200
commitee3095c194c59a7a9978bfba707021cd05daf9ec (patch)
tree8b95c35b4bd202c205abb395d6def60a4d1a5579 /drivers/misc/fsa9480.c
parent3cc2decc6a08ecd71f95ec259b3c008f239eb185 (diff)
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>
Diffstat (limited to 'drivers/misc/fsa9480.c')
-rw-r--r--drivers/misc/fsa9480.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/fsa9480.c b/drivers/misc/fsa9480.c
index 607b489a6501..a8126790f8de 100644
--- a/drivers/misc/fsa9480.c
+++ b/drivers/misc/fsa9480.c
@@ -410,7 +410,7 @@ static int fsa9480_irq_init(struct fsa9480_usbsw *usbsw)
static int fsa9480_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 fsa9480_usbsw *usbsw;
int ret = 0;