From patchwork Tue Feb 1 21:55:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Martin_Povi=C5=A1er?= X-Patchwork-Id: 539756 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 0D0C0C433F5 for ; Tue, 1 Feb 2022 21:55:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235740AbiBAVzW (ORCPT ); Tue, 1 Feb 2022 16:55:22 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:38102 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235804AbiBAVzV (ORCPT ); Tue, 1 Feb 2022 16:55:21 -0500 Date: Tue, 01 Feb 2022 21:55:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643752520; bh=91s3sGuD9seTYS3Ogxew71E+mOhxkkUpmHyteD5lQYM=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:From:To:Cc; b=Nj2VpdP9IUK4HWRBFBe0ppWR8BeLgyd7zTXh2q9IK+6d+2YUPyJyv8Iic7GUrFc1k 9eDmYS5GlnGLQLdEpQaXGoloKuW98BQLzBLxBtBCT4Ef8Ca9bT6ayuZdcIM4aRTQxF y89V15ex58Lo+DPUhE7kl2l5f1EvMtDMIUrFKvov9YFxW8WV5e0QwB0e9TgBZCMvW2 qZFHJ2YScB32TyldQZNI2Lxgfo9IXFSTdETuO13GdeSzrScLpddU7mLaoBPRRzZPQs ddY6Xc+yTdwSA9oYKUTE6FgCFl99x/6tT6sNs5Im75YvJ+/SoFpMTVXSm0ucOD1lKr nhMw6v51t5rrg== To: Hector Martin , Sven Peter , Wolfram Sang , Michael Ellerman From: =?utf-8?q?Martin_Povi=C5=A1er?= Cc: Alyssa Rosenzweig , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Martin_P?= =?utf-8?q?ovi=C5=A1er?= Reply-To: =?utf-8?q?Martin_Povi=C5=A1er?= Subject: [PATCH] i2c: pasemi: Drop I2C classes from platform driver variant Message-ID: <20220201215435.61967-1-povik+lin@protonmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Drop I2C device-probing classes from platform variant of the PASemi controller as it is only used on platforms where I2C devices should be instantiated in devicetree. (The I2C_CLASS_DEPRECATED flag is not raised as up to this point no devices relied on the old behavior.) Fixes: d88ae2932df0 ("i2c: pasemi: Add Apple platform driver") Signed-off-by: Martin PoviĊĦer --- drivers/i2c/busses/i2c-pasemi-core.c | 1 - drivers/i2c/busses/i2c-pasemi-pci.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) -- 2.33.0 diff --git a/drivers/i2c/busses/i2c-pasemi-core.c b/drivers/i2c/busses/i2c-pasemi-core.c index 4e161a4089d8..7728c8460dc0 100644 --- a/drivers/i2c/busses/i2c-pasemi-core.c +++ b/drivers/i2c/busses/i2c-pasemi-core.c @@ -333,7 +333,6 @@ int pasemi_i2c_common_probe(struct pasemi_smbus *smbus) smbus->adapter.owner = THIS_MODULE; snprintf(smbus->adapter.name, sizeof(smbus->adapter.name), "PA Semi SMBus adapter (%s)", dev_name(smbus->dev)); - smbus->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SPD; smbus->adapter.algo = &smbus_algorithm; smbus->adapter.algo_data = smbus; diff --git a/drivers/i2c/busses/i2c-pasemi-pci.c b/drivers/i2c/busses/i2c-pasemi-pci.c index 1ab1f28744fb..cfc89e04eb94 100644 --- a/drivers/i2c/busses/i2c-pasemi-pci.c +++ b/drivers/i2c/busses/i2c-pasemi-pci.c @@ -56,6 +56,7 @@ static int pasemi_smb_pci_probe(struct pci_dev *dev, if (!smbus->ioaddr) return -EBUSY; + smbus->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SPD; error = pasemi_i2c_common_probe(smbus); if (error) return error;