Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp969745rdh; Fri, 24 Nov 2023 02:17:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/gsHYJiD2jBRSvn/sFkAIg8kWe8ZFkQ4XIaIq0gCftK9zpEg0bvG86zmsOmvMVMkQJB3H X-Received: by 2002:a05:6a20:8e10:b0:187:e4a6:fe with SMTP id y16-20020a056a208e1000b00187e4a600femr2539417pzj.58.1700821033112; Fri, 24 Nov 2023 02:17:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700821033; cv=none; d=google.com; s=arc-20160816; b=oIHhFbAGyhlWakkMdFKGqYR5rZ0mtvuXRMXg2+C7yN1CfZ8am9YGtQoKoIiMvsamAW su7uLu52Ni+FNEP3H599/mqZqxWmEOjP/j69hqN/265nosSg2kPSJVM+3EKJ8KPmaM+N ssGWEAk5OjYKZ6jhQV55TOruP+DTt7DzEhckRY2gm1lmekFpSHQG8PGK/9KwBaPnQvjf thanFLJFokJGzZQNQGFN4l21BqdurYp++B2srYtYI2eET4P8+I51MvZIKyNnQjslAD/J upSQZAoDih9KUbpjfbQemYw1MQadbU6DmM022P7o+Nz/+lwQrzCkzD/EgcBAY7PmYQbL 1AGw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TvMhLdgxzmvHjkFyHLWsZZ7IOFCpPNkXdifeaawKQLI=; fh=QDQkTgZp6CGk/1SRx5Yx9yS3t+h589vreGP2pROli+g=; b=S4GNFDPf1IBosbVSvDPxgUxwDjAJkQymqwi3yBlUJ3ZU+u3YNddm2nQOQWWcUlHbY6 GjNU0TmFA3F8wwrWT7bJEam0oSNFsupdCSEjFPKQJ5zU85ocjYB26HReqqxbB9zmoaA6 rfU7fcaX0E0VMeQaJJQRnH5VJH0S39rvMsWT26ldzUtoVKqH0raDf2W+CRO2wAn1tvDz UkmaUkUr2jqFGuTZtkXt6z98k3RFHKdvh9Q/hspU0rBSLSe7lBh0ZyZ1iIN1QQAkgogo Yf2MJzOiS1VaZgELa3JvnTUqSltYOa+OrhLbKXdaWIzQ8vac8UPwf2gNiKSwNyO0ZgQr 1OGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MLnCxw1M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id m16-20020a056a00081000b006cbb132d4c3si3331005pfk.252.2023.11.24.02.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:17:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MLnCxw1M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C5C5B80AF81E; Fri, 24 Nov 2023 02:17:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345704AbjKXKQo (ORCPT + 99 others); Fri, 24 Nov 2023 05:16:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345565AbjKXKQ2 (ORCPT ); Fri, 24 Nov 2023 05:16:28 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 685A41710; Fri, 24 Nov 2023 02:16:28 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5431614d90eso2488541a12.1; Fri, 24 Nov 2023 02:16:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700820987; x=1701425787; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TvMhLdgxzmvHjkFyHLWsZZ7IOFCpPNkXdifeaawKQLI=; b=MLnCxw1MPygAe/hGaScggqLiNNuKTur/N7Qi9wSRttpyX/TL6MKnuTrQ85iiOzZdeZ NTu/1m72rZLYDjU/wz5UjajVrQSE98oDBDRBeY7PC5gxDDu0FqMXypTk3PJz37djgXZh Aefj43qi6LFve9mbsjKdHkzMD48eNWGj1KQ6gpolX0GLxmUgxpARtT27YSoP6bT2v5qm BnycdDAxICUR2bcEpuaJnMY05xpswbLncccHUteLFG/KcUlK/MgeulRg2I7uzf7o13wM IZf4/EGXBL4ZWwZo/W3K+A6OEjqescKsc7L45/MeXm/6DBvfKksTNNfaHQL1eenX/ku2 O3hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700820987; x=1701425787; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TvMhLdgxzmvHjkFyHLWsZZ7IOFCpPNkXdifeaawKQLI=; b=bCK9h0IV0kzIGVaDogiO2ubgoVfo0XNhU2ZW/g+KvsH3+1W1VljXKG9Klkii8GS1mJ 2joX//oqnpWtILS9twLlrVJslpzCNL1ryeIp9ArXqg7eH7H5AzZhFbsuCeGIZaDkTT+E wFDhgEDe6mDS6soqqns77ztSTgkzLY6guz2gj3cQKZHetBSsFhaAaXHnsByZM9FUiOvM Ou1ECQkfPMx93y6vc8KgeIGInPfqcoOyxpiC3s4eBJ9xL+fHKZO1m3ipGUs8YGdWfjqW oobdZMVscCGVqFmfuikr6XFY0ixQzhYNffX6cqFaTI25JsvaZ18T3jXid6tYvwSbr563 FjeA== X-Gm-Message-State: AOJu0Yyp2XMdrYyCv245YjtKtz+r2WPvWfz3l9NT+q5FaeC4pEfHY4Tq PFX5qA+FogldHYyCo/RoGp75Ceutk917tQ== X-Received: by 2002:a17:906:158e:b0:9fd:8d07:a3ad with SMTP id k14-20020a170906158e00b009fd8d07a3admr1465316ejd.17.1700820986648; Fri, 24 Nov 2023 02:16:26 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-72cf-8300-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:72cf:8300:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id oq12-20020a170906cc8c00b009fbf15cee7fsm1887801ejb.69.2023.11.24.02.16.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:16:26 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Michael Ellerman Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Nicholas Piggin , Christophe Leroy , Andi Shyti , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 03/10] i2c: pasemi: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Fri, 24 Nov 2023 11:16:12 +0100 Message-ID: <20231124101619.6470-4-hkallweit1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231124101619.6470-1-hkallweit1@gmail.com> References: <20231124101619.6470-1-hkallweit1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 24 Nov 2023 02:17:09 -0800 (PST) After removal of the legacy eeprom driver the only remaining I2C client device driver supporting I2C_CLASS_SPD is jc42. Because this driver also supports I2C_CLASS_HWMON, adapters don't have to declare support for I2C_CLASS_SPD if they support I2C_CLASS_HWMON. It's one step towards getting rid of I2C_CLASS_SPD mid-term. Series was created supported by Coccinelle and its splitpatch. Signed-off-by: Heiner Kallweit --- drivers/i2c/busses/i2c-pasemi-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-pasemi-pci.c b/drivers/i2c/busses/i2c-pasemi-pci.c index cfc89e04e..77f90c743 100644 --- a/drivers/i2c/busses/i2c-pasemi-pci.c +++ b/drivers/i2c/busses/i2c-pasemi-pci.c @@ -56,7 +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; + smbus->adapter.class = I2C_CLASS_HWMON; error = pasemi_i2c_common_probe(smbus); if (error) return error;