i2c: tegra: Remove i2c_dev.clk_divisor_non_hs_mode member
authorDmitry Osipenko <digetx@gmail.com>
Tue, 29 Sep 2020 22:18:49 +0000 (01:18 +0300)
committerWolfram Sang <wsa@kernel.org>
Mon, 5 Oct 2020 20:57:40 +0000 (22:57 +0200)
commit8ff727316a0930e308032fc2814d57fdaa30047f
treeb2e9acc5d98e1598bcb96c61a3d44a217b09208a
parent8548a75f3e8d8d39c1f4ceca04c4febfa8eaa127
i2c: tegra: Remove i2c_dev.clk_divisor_non_hs_mode member

The "non_hs_mode" divisor value is fixed, thus there is no need to have
the variable i2c_dev.clk_divisor_non_hs_mode struct member. Let's remove
it and move the mode selection into tegra_i2c_init() where it can be
united with the timing selection.

Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-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