Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp987295ybk; Sun, 10 May 2020 02:52:47 -0700 (PDT) X-Google-Smtp-Source: APiQypIRAk8mOtgI6acL+d1gw6O0DsGC4lYqkP8PaVzNL7wz9oI179jGicJEmK8gVl6tIt27h720 X-Received: by 2002:a17:906:200a:: with SMTP id 10mr8522551ejo.294.1589104367559; Sun, 10 May 2020 02:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589104367; cv=none; d=google.com; s=arc-20160816; b=0PHeadT1qIbzEK4HKzze4Y3B9DNFB/hwnESB3ICF5rW+psLI1j4krGtuXR0Dz4lJ2e RFmE2G4G2b64XlAJYQfy5gZvAPS5d2/mcpssQqUc6xaKLHfBuOMLOwM3H4Iv2emMVKha ucOpnF5D1xx0yecnKVpmZH/VU3MfjkEXGSX4Xnm478hbnia8G9uDzi2uvIcH/IfOclFn 7QnvJMkjl3s3h4UfB2comG+qep70dYZZH6KUtB4uSfenBqxePvGusasZxcVMwxTaKx5V MHrTx/+SnWjBiMk6G71txwCehviBZLcA76s64VQv7xvUWt2Z/I7GQi+GLrV/sOO8uxWV Yhwg== 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=V9QuIy9enXKqaCa+DKE2wbkLRkl9caFYiuIH+vVtzh0=; b=tAW1Qj7IKxiTsIUaCDyXGgbd1C8sMvQp2SR82COlT+qqMf/eDjncvqsUHotd2uL0/Z qPVrmti6PZZB/mG5VQmmCCa/cN26aDZD6zLUxrU7jEz6Nku6B1f6Ey40L0DoyG6Qn7f4 te4oZC+NmQkei9Ug0AfJ0iLcoxlF3PjrWiE5IrsvES8U5H3wiZ8IuQ1O+WtzylQfpCDO L9qpqL+vof6eBveyYNdukI5/BJ8+dvrdINT3oyhkWLzjHUsAq5+9Q/7DKzGdJveqDaHr VkMFuLDbWqadKtmuXoxjIpX10D6Z7lpLmLQ27pOqhsIa6ACnnzvMvr207jesmeo4gBOY /I2g== 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 h21si4231611edq.123.2020.05.10.02.52.24; Sun, 10 May 2020 02:52:47 -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 S1728940AbgEJJus (ORCPT + 99 others); Sun, 10 May 2020 05:50:48 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:45950 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbgEJJuq (ORCPT ); Sun, 10 May 2020 05:50:46 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 09DC8803078F; Sun, 10 May 2020 09:50:43 +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 VnbM-ZgQ1Cim; Sun, 10 May 2020 12:50:42 +0300 (MSK) From: Serge Semin To: Jarkko Nikula CC: Serge Semin , Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Andy Shevchenko , Mika Westerberg , Wolfram Sang , Rob Herring , Frank Rowand , , , Wolfram Sang , Jean Delvare , Max Staudt , Stefan Roese , , Subject: [PATCH v2 05/12] i2c: designware: Use `-y` to build multi-object modules Date: Sun, 10 May 2020 12:50:11 +0300 Message-ID: <20200510095019.20981-6-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20200510095019.20981-1-Sergey.Semin@baikalelectronics.ru> References: <20200306132001.1B875803087C@mail.baikalelectronics.ru> <20200510095019.20981-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 Cc: Alexey Malahov Cc: Thomas Bogendoerfer Cc: Paul Burton Cc: Ralf Baechle Cc: Andy Shevchenko Cc: Mika Westerberg Cc: Wolfram Sang Cc: Rob Herring Cc: Frank Rowand Cc: linux-mips@vger.kernel.org Cc: devicetree@vger.kernel.org --- drivers/i2c/busses/Makefile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile index 25d60889713c..c6813d7b2780 100644 --- a/drivers/i2c/busses/Makefile +++ b/drivers/i2c/busses/Makefile @@ -48,16 +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-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.25.1