Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp969823rdh; Fri, 24 Nov 2023 02:17:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/HzWYUfkPlCd+GW0QkND51G0TAIovzX/LbeZrCIiPvzOzsK2Awcga/2XLwjyB2jKRP5Rs X-Received: by 2002:a05:6a21:328a:b0:187:15e2:fdd9 with SMTP id yt10-20020a056a21328a00b0018715e2fdd9mr2373512pzb.39.1700821042411; Fri, 24 Nov 2023 02:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700821042; cv=none; d=google.com; s=arc-20160816; b=NafmQREQDtAsvfR2nY/dESYaTTZW3FwGTBbHfNxgLgxpXpPPIQiNywipwq8Kc60eE5 dMJeOUDauW+aL0wdjMD/oFjCu8W5G2bxn1yWEsDq/YRgApgptD+e7FY8mMVCzTcNxFSC QXeDKCYepXazXJT3beXS2/AfLoTo1vtjtUpUk+uOlMmo3k6jUL1pgI0xzDH13BCPSt79 EnVZNHMSqoJnA4kaQ/5KCwBj0DrqDMrHTu5JS6JXh9fzb7F2kZ6DeSKpXTNHV3RlD58J PLKM961MTh1RHDJANwZkpWrybNVdHUhcB+sX2NKQy1natEtupoF8NLGnt1aydv8mDxYY 4NWw== 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=n+AlUo2GslrTb8lu/H9lXRQ7xNPByNIgHu5m89J0d9M=; fh=QCZ1v23EwZPkbYRoLt8uNZfCGgzjrm6QjuBKE9PY2vM=; b=oautytCcom5amehFH50c7QMp1HfcVLbEW9Br6lK/MQABt7zkH1wLSHKAcTec+kPpGG hE32GldJ99joKBg0T2W578FH35NF4EaQw+Rhqg5mSI9yFg/us9Zk1Wr+4mD13l1/zCir ci4b0v6flkc53myFgxBqCN2zMVauFHpVl7PjVA0NLsrm+Rs69g+LwTubfNKzHgLFODE9 KfUAXzyziNh6nmWmBe4SfeiHhNO6SUfhcVJdGc0bPKUccUqXSTqQJQpBkEh9W6MLlusb CoAp8se+c4lwYBWlujmL5o5xD5OWdTK4GvfURKDIgSxMGwv7VnMi6VNNXSnzx9vVCi/U NV8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="aj/dy6bR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id f15-20020a170902ab8f00b001cf75ba66e6si2890800plr.580.2023.11.24.02.17.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:17:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="aj/dy6bR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id D54D583BC6DE; Fri, 24 Nov 2023 02:17:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345648AbjKXKQv (ORCPT + 99 others); Fri, 24 Nov 2023 05:16:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345611AbjKXKQa (ORCPT ); Fri, 24 Nov 2023 05:16:30 -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 42CB010F6; Fri, 24 Nov 2023 02:16:30 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a0029289b1bso242900866b.1; Fri, 24 Nov 2023 02:16:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700820989; x=1701425789; 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=n+AlUo2GslrTb8lu/H9lXRQ7xNPByNIgHu5m89J0d9M=; b=aj/dy6bRKtbXQ0WZd56u9wpDyAwl1F3/rQnqbMB+dQ3V16lgrS503H5tGYlMr3ZWzM yTAG+8CLdXlDIzJEbVWrepXnx6U5fYKLgf5HBq79QsQBho2prbosKTuGkapZ6Kk0WvLp Wp8lyDjxSkWKm2SyxCQS4K6SXYRYlb/LoG2KqhDfu70Fy9ob4ET2UsckFGq8cgMfuPpR jh8c+1WAxGuXRcGQCYHUPd0gJ5HIgnFl3j6bTCk5aNGTkXdnh02pEfhObXuRD/izN664 3vjOUoI/CSxRKKzwlvd66l33v3eHSo4dJngIX4OMzqqj81waD09eW8OeY+9UVO8OV4h6 bcGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700820989; x=1701425789; 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=n+AlUo2GslrTb8lu/H9lXRQ7xNPByNIgHu5m89J0d9M=; b=m9mKtT9AVd09gSXnZeuk5UNo79VYk03gtJBNuwL4rVsgsrdnZY7CszInIjNHst0Oop ZU25KxTvqf3Sk7ePuXor6ax25Dhn/RLfT237SbkHYHXNZNER/YwrVL81CeR1DChm25A2 ueZk1roS0v2r55RF9JPXrX8ZQ2+XJZIeZHfTFiBxQKxzrBiWI3s805e3/iqy8Xj28qMM hUGrWiem0nHMnhF2a7G7GEhikQ6Xk1Y1HtBzs6m21DCubYN1ymsEdbxW03sNiy5RhZKM wEW2DiSe2ES9d+0DwkbOuceR9zG12gXoE9BUc4XTHMoIaGcYZCXLgHejE9nvq6G/vSaF VukA== X-Gm-Message-State: AOJu0Yz3EV2QGL/bLLdLVq+bK1Sx+m9HJ06GYtAx451iVBmkQ6Lo4eAM tcgM/pP7MaWf6s3aMXjPF4E= X-Received: by 2002:a17:906:b796:b0:9fe:57b3:bc08 with SMTP id dt22-20020a170906b79600b009fe57b3bc08mr1480276ejb.41.1700820988942; Fri, 24 Nov 2023 02:16:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:16:28 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Jean Delvare , linux-kernel@vger.kernel.org Subject: [PATCH v2 05/10] i2c: stub: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Fri, 24 Nov 2023 11:16:14 +0100 Message-ID: <20231124101619.6470-6-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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 24 Nov 2023 02:17:16 -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/i2c-stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/i2c-stub.c b/drivers/i2c/i2c-stub.c index d642cad21..09e7b7bf4 100644 --- a/drivers/i2c/i2c-stub.c +++ b/drivers/i2c/i2c-stub.c @@ -308,7 +308,7 @@ static const struct i2c_algorithm smbus_algorithm = { static struct i2c_adapter stub_adapter = { .owner = THIS_MODULE, - .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, + .class = I2C_CLASS_HWMON, .algo = &smbus_algorithm, .name = "SMBus stub driver", };