Re: [PATCH v2 2/2] i2c: tegra: allow VI support to be compiled out

From: Dmitry Osipenko
Date: Tue Jan 18 2022 - 15:34:06 EST


18.01.2022 23:00, Michał Mirosław пишет:
> Save a bit of code for older Tegra platforms by compiling out
> VI's I2C mode support that's used only for Tegra210.
>
> $ size i2c-tegra.o
> text data bss dec hex filename
> 10385 240 8 10633 2989 i2c-tegra.o (full)
> 9617 240 8 9865 2689 i2c-tegra.o (no-dvc)
> 9389 240 8 9637 25a5 i2c-tegra.o (no-vi)
> 8617 240 8 8865 22a1 i2c-tegra.o (no-vi,no-dvc)
>
> ---
> v2: remove KConfig symbol as per Dmitry Osipenko's suggestion.
> (Assuming that for Tegra210 the VI part will be used anyway.)
>
> Signed-off-by: Michał Mirosław <mirq-linux@xxxxxxxxxxxx>
> ---
> drivers/i2c/busses/i2c-tegra.c | 20 ++++++++++++--------
> 1 file changed, 12 insertions(+), 8 deletions(-)

Reviewed-by: Dmitry Osipenko <digetx@xxxxxxxxx>