Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp970166rdh; Fri, 24 Nov 2023 02:17:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/ujuwnwRvoFjq11iX4eCqsGysvETC5Q2Qns7qA8jlK8XI+w3OkFls+OAMKPNtNJa43k2J X-Received: by 2002:a05:6808:1151:b0:3ae:a6e:6ccc with SMTP id u17-20020a056808115100b003ae0a6e6cccmr2899874oiu.49.1700821077047; Fri, 24 Nov 2023 02:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700821077; cv=none; d=google.com; s=arc-20160816; b=nDfMBZTBTg9r2rtZ9Q7v/XcrmBEzu2Ff2vIfH1EP/468EdbUYGWUhkmZxb/ih/k2u3 wPX6zx5nShMWLerA1HvaY6ft54YrQ0A6E/fpmiucFewtwCiaoMyGe0w54VZ1QCBFEAMJ IeO5RCEVHdTOhy+8gh/EOtnbSAHKdiQVefietRyk67yQJTmph3Rn49cVcmjSoQu/5kUb ZlBpJGcR+l7ST3qar7XivgaQjkd/kQim0I2nOtRg7+C+V1fgN2vs5hEgtRQU4SimhejS G9DJuAGc3qbWsU7tFiivdwuV9UdiL+QXOZd1BqxnnlYnI4iu6e5OO4Y+aJn8ntG/GCsx WghA== 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=CmI/uIQ6Rz6MtRkEfeCIhTUeSTfDQWhDOaE2Jo1gHkw=; fh=Lir2fPHJgVE8OGpy4mLSdCzkzl7TxaRSNzXTgXRsDAs=; b=ZuLLABhkh2m57UnLnd/9kfP1FX1uho26vhs7FhrjkqJfP7oO7yNDotCwSD6yL7zFTY yQzaRbt4xfu2kC0zlS4S7hdcnhqj+8Ew1EAvZKtuq5rD+XQdGFQdHldHszJYrbK14aPl Jx20+H5b88UfcE8n/Ntys0GiemYI/OceNdSYzegma0JndhQkp4iyfaGlO6Xbp+SuURzu qgMMkWDUClMR4vtqzHwQIC/B5AB/GrJiKli46O3MWxVUqXfyqR9c5ltFF4C9gA9w75G2 tIViX6sTs5YsNWRgJKRFt7arRVz3T29TTnWv0luNtESyK03ZZQhXAF8Nu66fL2x8chZ3 n38Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=go7Qrl4K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id i18-20020a635412000000b005bdf5961d87si3154813pgb.266.2023.11.24.02.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:17:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=go7Qrl4K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id B351E80A5B54; Fri, 24 Nov 2023 02:17:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345498AbjKXKRV (ORCPT + 99 others); Fri, 24 Nov 2023 05:17:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345606AbjKXKQf (ORCPT ); Fri, 24 Nov 2023 05:16:35 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A91E110FA; Fri, 24 Nov 2023 02:16:36 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a02ba1f500fso251684166b.0; Fri, 24 Nov 2023 02:16:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700820995; x=1701425795; 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=CmI/uIQ6Rz6MtRkEfeCIhTUeSTfDQWhDOaE2Jo1gHkw=; b=go7Qrl4KK6CKbXtxM7P2PCPTIn4BZSMVf/n58O7uymbxwsyFVBJ28r4CJ+2r5USRAx PMPa+e3ZFzr2E7M+xVQfnpBxMoqLtxU5YfJR8d7XdHTyJfxnkvdcPm2g6uwMBAqwSlK8 p84TZvpQQD7ZJ4mUXSMfSdl52+0cUNpWLBnZLKAIMhP7enjX91hbs2D6zhfngQkgW5zI thrXPJpKWMm1R3073XiRwGJ3YE6Kg3o1u/cEIOLRG9bTSZpvQuHYfxHOL9cIh2GdNmG0 yr1yHhm9x2iPLw09Czm85+pJwCDK+pQ13TcAjpAK3UfzqCejVOyrnKf44TnBM1Fu9AsR DLYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700820995; x=1701425795; 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=CmI/uIQ6Rz6MtRkEfeCIhTUeSTfDQWhDOaE2Jo1gHkw=; b=csxjSGznNHKR0Is7IYeQuh6B6zPPS6Snw++DjHVqBDcp/VPn8Y9ImjKwCpvU2dtOwa qrpqN59bGwne+szP+ElWIEQZ8q1ecynEfY0f0V7zDwZA8JxHhJk2m4WK9iJQO5Nc1iQd 27v4kgBJtiNSUl0AdmQH/O08oQdwJ7dxr7FkfwNLLECJUx4+R/wa+GjsKXnLJnm3I5kD TRystu91WqdvsP1iaYoZoIqxD5kczO8fbendkRwtO5C3FFdnA+I6IqgvrLcRDaRHnQDg BGY4PmtXkt1YMZgW+htzWgPSPrDjj7IyZG+0BtySUeJ5UtgI5gtCv7k1YYE3QRN6pZFb 16mA== X-Gm-Message-State: AOJu0Yw/oXxqvhIdzvoVtw5XCokN5V7L8Ge5n/5YRhIjAn2fQL4ZicNQ yfAe3nV0kNVir1mY/zEiK9lTih5r5WV1xQ== X-Received: by 2002:a17:906:29e:b0:a01:dc84:1658 with SMTP id 30-20020a170906029e00b00a01dc841658mr1687689ejf.4.1700820994715; Fri, 24 Nov 2023 02:16:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:16:33 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Jim Cromie Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH v2 10/10] i2c: scx200_acb: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Fri, 24 Nov 2023 11:16:19 +0100 Message-ID: <20231124101619.6470-11-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 morse.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 (morse.vger.email [0.0.0.0]); Fri, 24 Nov 2023 02:17:48 -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/scx200_acb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/scx200_acb.c b/drivers/i2c/busses/scx200_acb.c index 83c1db610..3648382b8 100644 --- a/drivers/i2c/busses/scx200_acb.c +++ b/drivers/i2c/busses/scx200_acb.c @@ -427,7 +427,7 @@ static struct scx200_acb_iface *scx200_create_iface(const char *text, snprintf(adapter->name, sizeof(adapter->name), "%s ACB%d", text, index); adapter->owner = THIS_MODULE; adapter->algo = &scx200_acb_algorithm; - adapter->class = I2C_CLASS_HWMON | I2C_CLASS_SPD; + adapter->class = I2C_CLASS_HWMON; adapter->dev.parent = dev; mutex_init(&iface->mutex);