From patchwork Fri May 5 21:45:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 679670 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAA78C77B7C for ; Fri, 5 May 2023 21:52:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230329AbjEEVwA (ORCPT ); Fri, 5 May 2023 17:52:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbjEEVv7 (ORCPT ); Fri, 5 May 2023 17:51:59 -0400 Received: from rere.qmqm.pl (rere.qmqm.pl [91.227.64.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B91304C20 for ; Fri, 5 May 2023 14:51:57 -0700 (PDT) Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4QCkkY1dBJz8x; Fri, 5 May 2023 23:45:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1683323125; bh=PwOi26H3hPkYFA82ugtwbn0hlISMPV9jBmzzs4zLWRU=; h=Date:Subject:From:To:Cc:From; b=PjxC192uBsEXrQW/27ds8oD3HnH4GvWpr6X3PdS6ly/qOFWbKrUN6YDTH1qK4qjbO V7y7yA9+Ql+zur55aZrQBp3PUdtwHWOV1RIkekCuduOzho+zkzoH3YIHCD5qwHG/Dj ux7t+0yxyV3AjCyPDQNgX9fSRmKvMBnaxnCmfj+Dt+6XoIulcIOnT6qeyQJGesda5r eph1+2jDFOdw785+Q0CBoEn1hpkvIjQIfAWLZqm1vWXx8CQ1mviovLEBzPDwCCQLQA fdHMYrdGl5+x9fRbtApF7shKhUa1twveB+w/wz1lON+2YUSXqHiDbnj62ny4XJIpM9 6KT3zdUg+WxaQ== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at mail Date: Fri, 05 May 2023 23:45:24 +0200 Message-Id: Subject: [PATCH v3 0/2] i2c: tegra: allow compiling out support for Tegra's special controllers MIME-Version: 1.0 From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= To: Dmitry Osipenko , Jonathan Hunter , Laxman Dewangan , Thierry Reding Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Two patches that, combined, reduce I2C driver's code by ~2kB and a bit from runtime overhead for non-Tegra20 or non-Tegra210 builds. v3: added parentheses for IS_DVC and IS_VI macros as requested by Wolfram Sang (from checkpatch --strict report). v2: remove KConfig symbols as per Dmitry Osipenko's suggestion. This assumes that for relevant SoCs the special controller implementations will be used anyway. Michał Mirosław (2): i2c: tegra: allow DVC support to be compiled out i2c: tegra: allow VI support to be compiled out drivers/i2c/busses/i2c-tegra.c | 35 +++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-)