Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp282717ybm; Thu, 28 May 2020 02:37:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxT87K6Z5BD48xXfdpv/BWXtDFYCHarvFHz4hNhobg/QU+po6i+HzR+3Hrupp13RCkSrCS X-Received: by 2002:a17:907:b11:: with SMTP id h17mr2223779ejl.497.1590658675791; Thu, 28 May 2020 02:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590658675; cv=none; d=google.com; s=arc-20160816; b=xEM+HnjKglBHzHIj+ku8WXs7mSECB35C2Cc/QNTqAnltjuGeIWpS5Oi8MRAEJCc2iK lJ2mV4zwxb6eQRyti2DC8QsP7F0vBAx4w0yYAv2oE1knEva+QvQPjJnkvkoCIceoboT4 6k8Q5ZmZWC/fE4Yi2lFmgy3FnT16iKiyPyPYKQzh0fqtaJyXD0DYeuXmWNQEe9+hoB21 aEy/3Wr59GaGzkU8rpHj6JcOXIGrZoWInuaJcwYLETEDhNMl1CnA6HOnqoY99KLqaA5R EknRCOdm7ocdhxGg12JkUzmDwyz5jcgIr5EVnTerr+Iw11X7qBU8okDadvM8WnNrVo7G eDIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=X8kxgjzSe0WZ9j7JpY8bEAUr9DCQrglu3LiRfvmbJkU=; b=f8KTqcJ8g/N/LpJW/BdmM/xw4OEHYcB8lXGzz05tIx0NWfIgefp+rMR2M/OBtMZY9y Y768ssW3upVj4F0PcVCXJji4SKdmp5LQsvRtLUTBAth61AIimEh1Bh6SfN8uo5wPPWdQ 801N46Me6PjCTC/zk+fIMkZvbKF0TxRve4CCnYmug1TUPo2BRAopU2nb0vao05TiDXxo HCkcixh9VUO58QJJQX0x+Ap05C98WaBm5T1+HvcB75gQhlduX7anOrxEiCFfQAMV5pni U19t6imzEtkcVJqr2BvzhpoNXqQTYecdUHAU9XSWSJSNLJS4mxuD/mgP/vcI+QYMoPoI e5ng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si3503505ejr.560.2020.05.28.02.37.33; Thu, 28 May 2020 02:37:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387472AbgE1Jdk (ORCPT + 99 others); Thu, 28 May 2020 05:33:40 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:40542 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728350AbgE1Jde (ORCPT ); Thu, 28 May 2020 05:33:34 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id C113380307C1; Thu, 28 May 2020 09:33:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k1lLjkKIFLVO; Thu, 28 May 2020 12:33:30 +0300 (MSK) From: Serge Semin To: Jarkko Nikula , Wolfram Sang CC: Serge Semin , Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Andy Shevchenko , Mika Westerberg , Rob Herring , , , , Subject: [PATCH v6 04/11] i2c: designware: Use `-y` to build multi-object modules Date: Thu, 28 May 2020 12:33:14 +0300 Message-ID: <20200528093322.23553-5-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20200528093322.23553-1-Sergey.Semin@baikalelectronics.ru> References: <20200528093322.23553-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 `-$(CONFIG_X) += x.o` Signed-off-by: Serge Semin Acked-by: Jarkko Nikula Cc: Alexey Malahov Cc: Thomas Bogendoerfer Cc: Andy Shevchenko Cc: Mika Westerberg Cc: Rob Herring Cc: linux-mips@vger.kernel.org Cc: devicetree@vger.kernel.org --- drivers/i2c/busses/Makefile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile index a33aa107a05d..c6813d7b2780 100644 --- a/drivers/i2c/busses/Makefile +++ b/drivers/i2c/busses/Makefile @@ -48,17 +48,15 @@ obj-$(CONFIG_I2C_CADENCE) += i2c-cadence.o obj-$(CONFIG_I2C_CBUS_GPIO) += i2c-cbus-gpio.o obj-$(CONFIG_I2C_CPM) += i2c-cpm.o obj-$(CONFIG_I2C_DAVINCI) += i2c-davinci.o -obj-$(CONFIG_I2C_DESIGNWARE_CORE) += i2c-designware-core.o -i2c-designware-core-objs := i2c-designware-common.o -i2c-designware-core-objs += i2c-designware-master.o -ifeq ($(CONFIG_I2C_DESIGNWARE_SLAVE),y) -i2c-designware-core-objs += i2c-designware-slave.o -endif -obj-$(CONFIG_I2C_DESIGNWARE_PLATFORM) += i2c-designware-platform.o -i2c-designware-platform-objs := i2c-designware-platdrv.o +obj-$(CONFIG_I2C_DESIGNWARE_CORE) += i2c-designware-core.o +i2c-designware-core-y := i2c-designware-common.o +i2c-designware-core-y += i2c-designware-master.o +i2c-designware-core-$(CONFIG_I2C_DESIGNWARE_SLAVE) += i2c-designware-slave.o +obj-$(CONFIG_I2C_DESIGNWARE_PLATFORM) += i2c-designware-platform.o +i2c-designware-platform-y := i2c-designware-platdrv.o i2c-designware-platform-$(CONFIG_I2C_DESIGNWARE_BAYTRAIL) += i2c-designware-baytrail.o -obj-$(CONFIG_I2C_DESIGNWARE_PCI) += i2c-designware-pci.o -i2c-designware-pci-objs := i2c-designware-pcidrv.o +obj-$(CONFIG_I2C_DESIGNWARE_PCI) += i2c-designware-pci.o +i2c-designware-pci-y := i2c-designware-pcidrv.o obj-$(CONFIG_I2C_DIGICOLOR) += i2c-digicolor.o obj-$(CONFIG_I2C_EFM32) += i2c-efm32.o obj-$(CONFIG_I2C_EG20T) += i2c-eg20t.o -- 2.26.2