i2c: tegra: Move out all device-tree parsing into tegra_i2c_parse_dt()
authorDmitry Osipenko <digetx@gmail.com>
Tue, 29 Sep 2020 22:18:56 +0000 (01:18 +0300)
committerWolfram Sang <wsa@kernel.org>
Mon, 5 Oct 2020 20:57:41 +0000 (22:57 +0200)
commit6fe3e2015faaf85e4c81b86f733316820e4af249
treec54124d232dd99b9adcfe8fb7dc94f9735c1c4b3
parent586a97d907ac348c96bae1b994e59ca6b8643fb6
i2c: tegra: Move out all device-tree parsing into tegra_i2c_parse_dt()

Move out code related to device-tree parsing from the probe function into
tegra_i2c_parse_dt() in order to make code more consistent.

Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-tegra.c