i2c: designware: Use `-y` to build multi-object modules
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>
Thu, 28 May 2020 09:33:14 +0000 (12:33 +0300)
committerWolfram Sang <wsa@kernel.org>
Sat, 30 May 2020 09:33:34 +0000 (11:33 +0200)
commitbbc5d36c5f66f19778d8e49a1e7d2c52e6873753
tree3791fe92a3c7a1de8666d022ac26f49a9d47f632
parent0029d097956e700b6b498ce39d6d745adc35b39c
i2c: designware: Use `-y` to build multi-object modules

Since commit 4f8272802739 ("Documentation: update kbuild loadable modules
goals & examples") `-objs` is fitted for building host programs, lets
change DW I2C core, platform and PCI driver kbuild directives to using
`-y`, which more straightforward for device drivers. By doing so we can
discard the ifeq construction in favor to the more natural and less bulky
`<module>-$(CONFIG_X) += x.o`

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/Makefile