Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp969964rdh; Fri, 24 Nov 2023 02:17:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHg68siTn3KxHcmRKV0XJ0uAHY5qVz9/+GY/ikQ0RquUr6TPIPZexuXM4/EN+R9bPRp+i1s X-Received: by 2002:a17:90b:1809:b0:27d:b244:cd28 with SMTP id lw9-20020a17090b180900b0027db244cd28mr2306314pjb.42.1700821058435; Fri, 24 Nov 2023 02:17:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700821058; cv=none; d=google.com; s=arc-20160816; b=Hu+xKT4QJUWAR+lbm9d5vTQEx1lVKAkLJtEQON8R28UfALnuwkk2fFB3FxkBNAU+oz GfsJFWt/TRA0G3vMkQpsy2tTH8cgLJMPLdwCAAKrTvLh53iLYTOgZm+dPGr+8R5mWFf6 W9rAWxI0nvkYynCoyF6rfXQuk+4VVnYqcwaPIiROGUszWu3QMb+AXKxjRLAoi7knGlpa HkaHGMaOil4l58DmfsX0zT9Z5ORnyAW0ufQaOs09N/i+sLpBrcgpnwF9QMO0GGVX2UzX KvjnirKEXam2RO5Fnov7vdFZnUOZzphKUAO5J5SlbfD92z5CHW9pssHGbxFzecQs3L/9 sJsg== 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=StehfMdN64OqQSfteMU1WHeQbOvnHJtoyvxwinO8ko0=; fh=vwwyejbJ9M0l2qecn/9x0Pf6cxg2JFDO1gW2O9DRtbA=; b=SpcRhsZJGuJ3d3RVyeM5/w9cch4qL0RtqTRgVm+axSGMSGRjK5cFWkqITHWPGZujvQ nRgNazteZtnMJkidEu6QVq1wO2yphGkbU8d5gf7WO8iKhTx1IF6Mj3ZgedSkZ/9saof1 aCb9tLdxa/wo8c5uuCDhlCmWvDUuT8ExZbEj3N1gSSpByi154C6WS/74OW2XDnRR/8kv PzVwiodaxCR7mBCOQayZp5e0cg7mTVX16veXzy9NNbjy8bNZEEV8FcE7Jo7/6YYkSsbz LBnowg00WCvlBbFWvAW7xF4BTNd3hSy1L/6WmZno45ThQ5UzejAqjt4BKSSCRDWnj8nR UXLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=D5oWfcvk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id fv15-20020a17090b0e8f00b0027ffcd44adasi3231154pjb.133.2023.11.24.02.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:17:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=D5oWfcvk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 2117D80A5B43; Fri, 24 Nov 2023 02:17:36 -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 S1345684AbjKXKQz (ORCPT + 99 others); Fri, 24 Nov 2023 05:16:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345564AbjKXKQb (ORCPT ); Fri, 24 Nov 2023 05:16:31 -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 33959172E; Fri, 24 Nov 2023 02:16:31 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a011e9bf336so241906066b.3; Fri, 24 Nov 2023 02:16:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700820990; x=1701425790; 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=StehfMdN64OqQSfteMU1WHeQbOvnHJtoyvxwinO8ko0=; b=D5oWfcvk3P8eyMO9IRsW2DAAnK9/tQJZn9FNResLz1EgakHQG6tmH5UeZoTidpxKWK uWTeXROcjYaZiHk8OiakLYXntaWJody1N9hP1DeTEOp3pODmWiz6tb+zsCY/8sgsSouW uz9fmd1upcFd1j34qYeTWVl4oKOivGizitaPihOLqkUjVqhNq35473e1FxL/oCDmrBbX /k47iuVxNT3Htu7r93ZwB9Joc0lEKHEgO8EsbX6210G0S80b3Fewi907E8fsUANAeLBY lxNWGqhAgo5ulBKhZ2QoPRsf6DsrjD5RLINr/VmDLtI15aTH1RELf+TYRGUlSdKC21WD Rzjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700820990; x=1701425790; 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=StehfMdN64OqQSfteMU1WHeQbOvnHJtoyvxwinO8ko0=; b=ImF4xCqP66VoTTcCt9Pb4ec1R1QZqKPivAV4KFGvx0Mglz690YYY/jT9YzhFTVtSr4 ygug8TRXkAXSmWXT6H+BB9lDaKTmwJU9ZFeGmDZxCX3Uy1cgzXeuvcA7/BZyBt2Jn9mW jD1M6oOoRfSM0nYcuAUe8lXbvlLJv2TAnxq7OoSD1M/mxdlcKeMs5RiNIPLB7OM48uv6 EVNjkoi6vuruf4RitMXSVheGgYq0tFEIqm7+hAaz+o+IVM2/1xjUurS3D4x1CGtHsShR hNVBj6NrA4QozZeH1r0lLJaCioSWXrd3npBu2e8uEZKgm2rFDO8XoodzcAUAKJAYXhFs gefA== X-Gm-Message-State: AOJu0YzFWs/7q/PWKpJxMW7Az/yk+wwNk+yKReL24kh64gMqQcpxPIZI MLbATP8Vop1/d/IG45VmsN8= X-Received: by 2002:a17:906:f357:b0:a0a:2704:e4f6 with SMTP id hg23-20020a170906f35700b00a0a2704e4f6mr159366ejb.21.1700820989928; Fri, 24 Nov 2023 02:16:29 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:16:29 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Wolfram Sang Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH v2 06/10] i2c: gpio: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Fri, 24 Nov 2023 11:16:15 +0100 Message-ID: <20231124101619.6470-7-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:36 -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-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c index fb35a75fe..df2b183ca 100644 --- a/drivers/i2c/busses/i2c-gpio.c +++ b/drivers/i2c/busses/i2c-gpio.c @@ -444,7 +444,7 @@ static int i2c_gpio_probe(struct platform_device *pdev) snprintf(adap->name, sizeof(adap->name), "i2c-gpio%d", pdev->id); adap->algo_data = bit_data; - adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD; + adap->class = I2C_CLASS_HWMON; adap->dev.parent = dev; device_set_node(&adap->dev, fwnode);