]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4feb0ea42354fe7d8ebcb9148863dcac124c01c9
treefdf5b15932b400de8fc7aaaff5fcc9568aafd289
parentbeb4ed450cde99e7dfbc41549d25fa2ff039b2d9
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