i2c: tegra: allow VI support to be compiled out
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sat, 6 May 2023 21:19:02 +0000 (23:19 +0200)
committerWolfram Sang <wsa@kernel.org>
Mon, 5 Jun 2023 08:34:57 +0000 (10:34 +0200)
commit4f5d68c8591498c3955dc0228ed6606c1b138278
treed7082324c1ec9377a7df1fa87727ea86629e1fba
parenta55efa7edf37dc428da7058b25c58a54dc9db4e4
i2c: tegra: allow VI support to be compiled out

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
  11381     292       8   11681    2da1 i2c-tegra.o (full)
  10193     292       8   10493    28fd i2c-tegra.o (no-dvc)
   9145     292       8    9445    24e5 i2c-tegra.o (no-vi,no-dvc)

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-tegra.c