projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc2dec
)
misc: fsa9480: simplify getting the adapter of a client
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:55:51 +0000
(12:55 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 15:29:50 +0000
(17:29 +0200)
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>
drivers/misc/fsa9480.c
patch
|
blob
|
history
diff --git
a/drivers/misc/fsa9480.c
b/drivers/misc/fsa9480.c
index 607b489a6501a8ff0d8b67317a9ebc3ae09be7f0..a8126790f8dea643a69bf96016d3db1e4d2fbd84 100644
(file)
--- 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;