Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3552060pxb; Fri, 4 Feb 2022 10:54:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFguP5+H168y/E0hUdTOa37hYvzKhIBhLOLvgwA9MIRPZPRCYi+R10l/3jUWxIPZ0jmCn6 X-Received: by 2002:a17:907:7241:: with SMTP id ds1mr224443ejc.199.1644000899694; Fri, 04 Feb 2022 10:54:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644000899; cv=none; d=google.com; s=arc-20160816; b=aeB+UvtmzGG7dP7X13oQ6qEoVx5bd21bxSRH/RG2qK/dPoRD8F2cNnZV01aqm13YXX uEtawIzbchXqrAFI+UBP6yblLcix2nma9WSv3DvweMj+99cpRPBzybrqmdsqQYYdSOXw PwdDv2gaYhCT4HKpMptmsclLSJaAWL+0sqANjLAIkpOvGiKpkqN8vhBrjcdTknSaCL1r xcruannoAmZyO6rWWN2OufoEYsl4EABFP1oUYO8Ki6Ib4L00wwZqLZgoV4z+U1j9000s bUbj4/JUDrZfKS8TLJgo/m//tESZUdRgo1sp/0XMdE4pyMaCZtgfZJYglkZkKod1KbOr sXIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=HuUso6bEMXsKcUMes12+B/JL6MuAREtSTqsS7Va9Yk0=; b=g2v6nBBPiGlJj3eg/N3RfiJTOx7Ii2nPn0NeP8eTfj1eSds3MY6X3Yzo6Ivpbk7gtW I7PmgRI1SINU8z9r+VU6ccrLvRMuw2i8UkaZCKAnqGsj+uTy6ZHcIb9VzYFxWF+Xciuw GmGXuH/g0KGv0hbRQlD3apyNliOJsG/WAY6fie6mbv+z2xohBspVRddzVw5IC5eNAVaJ VQBa221/sfgvHd0DW3eb4iDVJ8awXCnvZggdDmFR1Ql/RnhDp6pOelroC7OEufB3/RxB uVyFfukR0aBh1Qu9ZvcXwUFwXGu/LeuAlQWxQn6JaIjxX/PSJ4kDeyRtcwT1OW2Y1jM3 bAwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=pSRVUIiV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1si1627516edd.507.2022.02.04.10.54.31; Fri, 04 Feb 2022 10:54:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=pSRVUIiV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351072AbiBDJ7q (ORCPT + 99 others); Fri, 4 Feb 2022 04:59:46 -0500 Received: from hutie.ust.cz ([185.8.165.127]:60112 "EHLO hutie.ust.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237578AbiBDJ7q (ORCPT ); Fri, 4 Feb 2022 04:59:46 -0500 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1643968784; bh=HuUso6bEMXsKcUMes12+B/JL6MuAREtSTqsS7Va9Yk0=; h=From:To:Cc:Subject:Date; b=pSRVUIiVwm0AXy91+5lijVS54FRSb2o9brQR9V7QClMK29mhiL9ZXtFeTutwu9zSJ 7afb2w59owbu7AHcFPPp1RtExaFC2VLtI5oPJkV6mo/E9MOEvzSxfxdRVDS9m6UEUO 5kueD++/ApYD6EItRf65B1YfsP/oYiDaG0/cM57g= To: Hector Martin , Sven Peter , Michael Ellerman 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=20Povi=C5=A1er?= Subject: [PATCH v2] i2c: pasemi: Drop I2C classes from platform driver variant Date: Fri, 4 Feb 2022 10:59:14 +0100 Message-Id: <20220204095914.5678-1-povik+lin@cutebit.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam: Yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- I am sending v2 as some people got their copy in v1 encrypted with their WKD keys (by accident). I changed email provider since. drivers/i2c/busses/i2c-pasemi-core.c | 1 - drivers/i2c/busses/i2c-pasemi-pci.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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; -- 2.33.0