Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1293370rdb; Sat, 18 Nov 2023 10:06:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmqEBGJSJF9NUhV+u5xuyvmVbmD68+TpS8W+Hll/5t6jwl4+vgoh/4t6u19MlecVmjMBui X-Received: by 2002:a17:903:230a:b0:1cf:50e0:5077 with SMTP id d10-20020a170903230a00b001cf50e05077mr2062901plh.1.1700330784206; Sat, 18 Nov 2023 10:06:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700330784; cv=none; d=google.com; s=arc-20160816; b=yeF8+DXEL+3rgnIAqw/cn0mn67zLAnbHdp8G8MAbL2TKVTn9LNJqcxjuvcV0cKpzDa kFlfC9syj90tFRjf9ioonMoqjHas2was5r2lL7DLoYRl3WfU1QQ430f/Jfc0G4CQ35Yc 9ty5WvnsnQJdiUbvVEGMYgaps4/YGY/kCwld8c7/wnovEp1aniH+AifYIKAleU+Ei/Dx zRAXW8HO0aRhCALgnrob9zXFqQP/ga3jKKbJ/sKyT40ySJisAnCx1xjoVnN04mzMJTIe eu1MMfVKInkn/J5stHJl/+fsrM5SM7Nj1YGqwl7YtoN+JBoNMb6CDt930EmJFEd6X/S7 S3UA== 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=roBdCcPzLstLM8/JSIpHl0j2D5fXKoNfX0rW8q8tWfA=; fh=YinbU+czPzHmVfSREbCmyE/m411tDllok0vXz/npHbY=; b=O1QDOgTJL3w2dkUAOvtX7NM3NjJrC0gx0mFgsV0fMw4//hd8pHNzQTtW46PdtHeVh/ RoI/ugHxkUS8KWGcfbb6mI/sBhqYqDWt1nEG5FoYE6jJ7yZOg6oc2MqN8x6EjC7GVUxK SeTt6XVuEo/kuQbL4oOC3YQgGeGn0AK5qWFr1fTlqbpZ/m4Yj1Ki4MLO02otKXuGxbVa zXXmYwDfKpj7rxfPCo7cxL5HSqRK4vgfdlnNFbCZaiUlUOyu3UbItVYfqv3B6Nwgrxol 69juX5nLc4F6bpTSQBVActucs/QyQOthohrnh8ZL8UvWTwCkcnbGBCJL49clCXLxjETw BtbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VyO97uV0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id f8-20020a17090274c800b001c9c8e0cbafsi4487150plt.202.2023.11.18.10.06.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 10:06:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VyO97uV0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 199B28087249; Sat, 18 Nov 2023 10:06:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbjKRSFk (ORCPT + 99 others); Sat, 18 Nov 2023 13:05:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjKRSFZ (ORCPT ); Sat, 18 Nov 2023 13:05:25 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FFCEE6; Sat, 18 Nov 2023 10:05:17 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-991c786369cso426548466b.1; Sat, 18 Nov 2023 10:05:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700330716; x=1700935516; 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=roBdCcPzLstLM8/JSIpHl0j2D5fXKoNfX0rW8q8tWfA=; b=VyO97uV0Av7l/4W2GVvwl+0S0J1ojkNjvjYZmUnUUzSRgVcJUBlIuE0lmVKY9qjnUP 1V0u99zgcxO/wtQ6DGD93pM83Cl4cW6hw0aKlHuf+Pag0IaW7aOvWmLTwLVG5kAtsmOl F1TlUI1iv5puxwqff7VEae7GABGpOLqWjWZBEbwVDANorQMXgXtbKZ8XQpVmNLFBfHOb ubjUHIUy5r3Tp14k5mX3PhWkI5Bl2SY8cBiG00IZDD7nXAIIY3BN7g0v3Q2kihRd9cqY ajLp0eIAqMiQ8ALKzK/37PpO+jkV4n0eZoimyetApy8wZqZmMyKpy98cIbe/aBAr0P8X b4dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700330716; x=1700935516; 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=roBdCcPzLstLM8/JSIpHl0j2D5fXKoNfX0rW8q8tWfA=; b=ulunymfEYwdjSUPHd2ezXR6k8C9dgXyjd9iryHzsnWcmAdrKZXjgs0657M3Y/JiJSi 8dupmeg7kaapnAt1v5jhVfLpJ6gJWGvfGQd9J0hd5ZzQqrg6p6vCwPkMd9f613xA0kUx gyWFoHkAdSYb2hziz8XTHvMWk5hZ6e7iSenq1Xln8FYyNzQgIbA0X08fNMXaDL+ksZQ2 lTG7mgn0mCQDR7UE35GLihuES9aGfTrzkk68iT86qbBsmC6mO2SJQ44pJ9wWkrgDsBhv N+gW85zSvaffzaGO2gbVpdOHJTp3mMCP5E1Fl+1BzjzAiWnhjkcUQ/yYbQcDCB1L0Wjt DsCQ== X-Gm-Message-State: AOJu0YxnQMIJvYwYCPiwldyKkF8exBcMCR2Bv1zUt8ZdJwT4F6gs8it/ /zlZbRrmRmtSgXuBTZWEzvk= X-Received: by 2002:a17:906:f193:b0:9bf:5771:a8cf with SMTP id gs19-20020a170906f19300b009bf5771a8cfmr2174684ejb.70.1700330715918; Sat, 18 Nov 2023 10:05:15 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-77bf-8300-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:77bf:8300:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id m20-20020a1709062b9400b009f2c769b4ebsm2079456ejg.151.2023.11.18.10.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 10:05:15 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Vadim Pasternak Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Michael Shych , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 07/10] drivers/i2c/busses/i2c-mlxcpld.c: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Sat, 18 Nov 2023 19:05:01 +0100 Message-ID: <20231118180504.1785-8-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231118180504.1785-1-hkallweit1@gmail.com> References: <20231118180504.1785-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 agentk.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 (agentk.vger.email [0.0.0.0]); Sat, 18 Nov 2023 10:06:17 -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-mlxcpld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c index 6fec64ea6..099291a04 100644 --- a/drivers/i2c/busses/i2c-mlxcpld.c +++ b/drivers/i2c/busses/i2c-mlxcpld.c @@ -477,7 +477,7 @@ static const struct i2c_adapter_quirks mlxcpld_i2c_quirks_ext2 = { static struct i2c_adapter mlxcpld_i2c_adapter = { .owner = THIS_MODULE, .name = "i2c-mlxcpld", - .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, + .class = I2C_CLASS_HWMON, .algo = &mlxcpld_i2c_algo, .quirks = &mlxcpld_i2c_quirks, .retries = MLXCPLD_I2C_RETR_NUM,