Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp970003rdh; Fri, 24 Nov 2023 02:17:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIGicDQ88PHYCc0lEgcCS/KNZl88sejmn3kl14W5pAPOnkOYY2yQMLylKVo8ufLc6W2Sg1 X-Received: by 2002:a05:6e02:b2d:b0:35b:2908:a165 with SMTP id e13-20020a056e020b2d00b0035b2908a165mr2408206ilu.7.1700821062619; Fri, 24 Nov 2023 02:17:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700821062; cv=none; d=google.com; s=arc-20160816; b=Ff90aFuNUnBFTjBWFDDyFlNBVcIz2gCtRvgqZjcO1B/hD3x1yS4BmqW7CnJaccP1DH ghWwGKjOenW29eVz01L9ZIoz0GfY30HICfsDAnRUb0VAql2KnQQOJoXVh/wpDgOzsvIK M2eA4tJnK6L2jqf5ns/Mf6COCjneF7SjfZw52vfm0kgNtUxhc1xLpZy0lM6JDZA1jsJ2 hiS6D3pcX1Hgf2sR26/ZeUn0Pt7YUlIonSeGuBuIhJxIlWl/3RQBmMvK4sbzdyRyYe/l yX7B1ik49yCpI2T3HdHft6NY5dHYG06CglEs9g7aYkJ94Y0WZMR5whIZ1FZbqVtvTKzb UF7w== 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=fBFVvNKhAX+OR3ALwztSAgxwFpQwZtLHeEc/T4Eghog=; fh=2SstT+3zw7HGphKTeZblJtIAxB0GPr03eQi+1nHOUxE=; b=UOrKiTDfWJK1JyMCaJ5R6g/cE83zpnGplMs9fH0BMKJu33XEnytvtdRvuQH7e/CNip W2OlFKnjbwSB7HTQGCZ4jXpvZyVqXfs5HPggj80nZnN2ypc/SRi8vvnp9HAZd0sD87NN BLAIp+pl3Q8p0DA3JxPKWPSMYZsij5rKEBeu0B2j4jdbQsO6KXdtfVLKZylylb+TMeKo sWnlIte/c38GADFvzEEj9fW1kZNlUCO0fIA30I6O8Pjk+gpwTPnmnr3Lge61UXibtfhQ sDGySwTvpowUkkzQZ0JsPtlAilt8xVewskDptZ7Q+o8mINYGDfoZICIYvhdXAebV1nrX 3zxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VPE49zci; 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 q3-20020a631f43000000b0057942bfab4dsi3189180pgm.395.2023.11.24.02.17.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:17:42 -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=VPE49zci; 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 7300283BC6DF; Fri, 24 Nov 2023 02:17:39 -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 S1345799AbjKXKRR (ORCPT + 99 others); Fri, 24 Nov 2023 05:17:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345661AbjKXKQd (ORCPT ); Fri, 24 Nov 2023 05:16:33 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B10C198B; Fri, 24 Nov 2023 02:16:34 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a02d12a2444so251192466b.3; Fri, 24 Nov 2023 02:16:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700820993; x=1701425793; 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=fBFVvNKhAX+OR3ALwztSAgxwFpQwZtLHeEc/T4Eghog=; b=VPE49zcijTl3r1uq8JC2J7ZTPBU+nTGgImSZ216lLyfwXt+SMt0GGo3SqL1n4tLg+U y1YuffBXxih4pkXqjpu3KktdTjiGFdv3egfmYMsTX04QJrTJSPg4RNlAL5PNLEHnyAwY pff1tI3vEDmt4uq1DicmZlZdz7ASngEknQQ1ulmbhgce+CabbEYEjf1fnBSM3FUZv3Fk +OM1nzFJoRXs3Y1Nmd9LjauV1B9uUMQmuIDidu/cLv7PDEFNcSfule0YDw9mI+V8swNX cs+17KtPw3XeInnhxuaAqatRrIxoR+r5uHLMy2xtbR4C6SBpqZPP1tFpbjseEf2TTg18 9N7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700820993; x=1701425793; 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=fBFVvNKhAX+OR3ALwztSAgxwFpQwZtLHeEc/T4Eghog=; b=TSNenK1xHwwl9kU5ZHW/W7PgrvFovsAhGjZRLC4V1H1I1y4VEE5UTGYwNw1Lb2n3xa 2q8BFxa0BKUAG8uf0Lv0V3VFkdvberymcHIM3N9ExEtoI8ZIe8vK4orwzsodD1gR+HG8 3YxcWvvDnhooygVVZpp9gmj9C5m7a7MIKDoUkjXyBGppVRpehDM/92weOp7kEKXArySy +s79IXEkv2Hsvtqs32itkwdxsK3qfYAdBOU6qKQcigrsFWyCnGGK1RDgwmwbviEyK2rQ q7NHsIofaqRG7RbieAM0rsy/EQlX9PNy88Ktq5J5o0P1Q2zqqE3/wDXBGPcpzESWiAii et5g== X-Gm-Message-State: AOJu0YymuLzpXlLFtPodpfHNVNcYUFrliXLM9S0322JTkuQXLI5IAFBH 0vcgCHn8U/e95+9B1MmSS9U= X-Received: by 2002:a17:906:7c41:b0:9e6:cd68:5e57 with SMTP id g1-20020a1709067c4100b009e6cd685e57mr1674371ejp.2.1700820993427; Fri, 24 Nov 2023 02:16:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:16:32 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Jean Delvare Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Rudolf Marek , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH v2 09/10] i2c: ali1563: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Fri, 24 Nov 2023 11:16:18 +0100 Message-ID: <20231124101619.6470-10-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:39 -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-ali1563.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-ali1563.c b/drivers/i2c/busses/i2c-ali1563.c index 55a9e93fb..307fb0666 100644 --- a/drivers/i2c/busses/i2c-ali1563.c +++ b/drivers/i2c/busses/i2c-ali1563.c @@ -390,7 +390,7 @@ static const struct i2c_algorithm ali1563_algorithm = { static struct i2c_adapter ali1563_adapter = { .owner = THIS_MODULE, - .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, + .class = I2C_CLASS_HWMON, .algo = &ali1563_algorithm, };