i2c: mux: pca954x: use helper variable in probe
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Jun 2018 13:42:36 +0000 (15:42 +0200)
committerPeter Rosin <peda@axentia.se>
Mon, 30 Jul 2018 08:13:30 +0000 (10:13 +0200)
commit6856909ce542ddea39f9dfc8429b26b3bb0a9e8b
treefdf5b15932b400de8fc7aaaff5fcc9568aafd289
parentd72e90f33aa4709ebecc5005562f52335e106a60
i2c: mux: pca954x: use helper variable in probe

This creates a struct device *dev helper variable in probe()
which IMO makes the code less cluttered and easier to read.
Also rename the of_node veriable to the common shortform "np"
(node pointer).

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[peda: slightly edited commit message and removed some surplus newlines]
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-mux-pca954x.c