Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1293126rdb; Sat, 18 Nov 2023 10:06:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/i/BsvJ1MtrBdGR8O3VgqRJsrfjeDaYqLoXnJV1Hlqp5XCz1ZZDHwyeOYswxR/ypCYDWi X-Received: by 2002:a05:6a00:3695:b0:6cb:4e11:ca41 with SMTP id dw21-20020a056a00369500b006cb4e11ca41mr2422766pfb.26.1700330761143; Sat, 18 Nov 2023 10:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700330761; cv=none; d=google.com; s=arc-20160816; b=UZDALjLYQ2E9idbrl5Sn5GI2os6BLxm9ONHSXpoYmGWX4AWdbz3d1JKd1m5aoufhR1 rQkOoPET1dJHei2qblCH4KlFVrXv9+tgME7U0DJsF2tK6YZgs921J0K57bq7wcy9vmkJ yCuCR/yhMoEXpWfAHTqQN/RSAmZExEXJ5139/VEQ9xJpim+cjTvqb2DuRnZsOqCgh7N1 X2JtYHp+QdJcBaHVVYflE9kF99iQFaOxzpjdJrqX2gYA3W6u5sC2EOw/H6b+u4kXG3f6 WsJt5MbMzVqZdgtis3yJqyCISVFkMuo1S2lnrI2LQNPVcHHfPTHAWAQPURI/fk56X+p/ eaZg== 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=wMVkmGiDkRXqSLRovT6Uw7KpdGrQCPI4XNUhvW/c8/FgTx6oiQzik8zwfjZAoR35Ap HzEbeblqCFcjRKh32FnIDS2+Y09aVg1cML886wADRZK/elOAwhqoYAixp19OPPZ9fe2R B20/+7PBZTLgUdxSKKAx8HwPAPMG2KLZpKoncfQyLloUtlK1Y1NTkKQzrNYVLBQ4zkbK 51WsaRIfeHvx8V/nWfPNRhEeiDNNwjqeBj4MJOJue8qTQ/02KQGI4H/sGGjg3icgT2Jv rW1eonl5Cqi/BtYAD/XsbkICxKOMD7gE8N9QtnwiksszYagO86ZhawLGXQkZ6BKLf4n7 BSiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HRZmBh7I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 203-20020a6300d4000000b005bd366fd5a1si4324893pga.449.2023.11.18.10.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 10:06:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HRZmBh7I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 4E9D580C65DE; Sat, 18 Nov 2023 10:05:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231252AbjKRSFs (ORCPT + 99 others); Sat, 18 Nov 2023 13:05:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230498AbjKRSF0 (ORCPT ); Sat, 18 Nov 2023 13:05:26 -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 9371CD6A; Sat, 18 Nov 2023 10:05:19 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9f27af23443so421494466b.0; Sat, 18 Nov 2023 10:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700330718; x=1700935518; 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=HRZmBh7IUYYMa530NGuK8Ff3IHau/Ccrv6Qg+Ttx2kewmlpr4RxilAeum7zeDdsmfL G3xuiCOcqRwiuMYSEYjeqpr6ZPYti1fv2rKdJiuAFevnQwqn4V2z9jah5bcL52rWIY1w r2mB18Zy/Tf9Meqhywbit8Bg+HKZRDxNoDw0bfwKlcn0/Ov6Qc4VmgAHKOW4/fI9QH1i Ak5WJOnxa9rJDa+v7WNCAfY0nPqTWpoFK2niPnDcDXWrHtjr4f65ueZVCIhOom9ikT4K OspZ9PR3v0/ALedf6tPh5cedxXHloW00MVymoleqJxLdsfmko2o1JjP5aRfAK9/CnV/v xWLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700330718; x=1700935518; 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=vkth/Me8vgUthKtt5v2j5BedrF5diESXETKT5zfMKa7lpqmnRWZyrCLp02xBO2ppOW 83Q7JpAk30UbB5dh//aZGGq/Iu5skGhdfhaEFdwfkncmkJHlRPmc9hhM3sYlP5pNT/Z3 JScvUyvmkehVGbMjqSCsYHT9ac3XVK5A8Nx+rKgkd6uv/kN9/6gsBg040l8IUghvManp kjMs/ulV4N15k0rPR6GYM+c+MTUNB6gMEROrT5ewJOepvt8z9XTlAwC8J9Sugc2hZvXj +gB89WlS3I4hP8Bxx0Vk5kHP+mOZr14fYahVL/oXjnOr5xiSno4Ugr0Mh04FVwb0Ij++ xTlQ== X-Gm-Message-State: AOJu0Yx7P33G5J+uXFpbWopPz6zn/aE/OULms3AQDBf5KuNteUzIILEY aBlFs3VFIZHg2Rhg7y7Y0FzGeAA3euuCVA== X-Received: by 2002:a17:906:11:b0:9cc:450c:b0d5 with SMTP id 17-20020a170906001100b009cc450cb0d5mr2292468eja.4.1700330717822; Sat, 18 Nov 2023 10:05:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 10:05:17 -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 09/10] drivers/i2c/busses/scx200_acb.c: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Sat, 18 Nov 2023 19:05:03 +0100 Message-ID: <20231118180504.1785-10-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sat, 18 Nov 2023 10:05:59 -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);