Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1293026rdb; Sat, 18 Nov 2023 10:05:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqg9EhU/IGon0/QsGhgEE2yf8R6JvDxy8s9n1X56V2i3iH5apG3zl7R//vnZrmb2gvolAB X-Received: by 2002:a17:903:1251:b0:1cc:379b:3505 with SMTP id u17-20020a170903125100b001cc379b3505mr3189682plh.49.1700330750313; Sat, 18 Nov 2023 10:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700330750; cv=none; d=google.com; s=arc-20160816; b=a84l0mcAFrL/0HT2c9S1eQXW70uYmki3YS9geaxxByT5YdD4JHxnSZJ1bETWtSJGqL sF7lSmVcOE5NYiZ4YChTXFy3EM3s+wCnOJ/74WtxSZhdihO/JfZ33msEQS2yqFhHpKLo SoI+EPaybOrmlzMBV4Q9JX6jdqDqXvP5naGwQjQx10GsiCtghYEhqnyRSWfnmllA+pqz lSXOA7QW7siuU7Jj2CrZurhf9GmU1+WTvA7Jwis+imf2fBMGyvbXRldQbU6tGgVgAH6b 9+xsOpyqAvlk10LLPwLX4Fnapo/8+gmwe4KCe2dQymW7MYXgciftQhOXr9qvWmin0MSZ VsVg== 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=0IZrT/SzB5I5dZm0j1DnWW9T0aT3J3eQEpE+vlt3N+qNH3mvSddHlZYVDNMEW4RpBN XcTSwO3JSF+MEdyh2rPAGQP+9Wmkka68C0yAu5m9x864m3+sDS/fbFociWl9BYbjEgOt w9poATXuGmk+9nDGdZs6Wt5k+GO7D+7MLJxNYR3Yh/eGLe0So8KgxG/5HSXuUkVY8AUH eJPCU8NvGRc1bKs/2kSwXv9QPxgX9A/rWbUrMtnd8MiXWJtxmChIzuuhs29vKr0Wc+56 brU0muMF5/WM0wzPKQ3DpiLyTki7lRL1ADqIFkKafudr0avNUOyZynSa08p2VLG1K1d0 JG5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MW0MBr+g; 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 t12-20020a170902e84c00b001cf57827c7asi536415plg.147.2023.11.18.10.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 10:05:50 -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=MW0MBr+g; 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 E332780BD25B; Sat, 18 Nov 2023 10:05:48 -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 S231273AbjKRSFg (ORCPT + 99 others); Sat, 18 Nov 2023 13:05:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230406AbjKRSFU (ORCPT ); Sat, 18 Nov 2023 13:05:20 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4200130; Sat, 18 Nov 2023 10:05:16 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9e28724ac88so418370066b.2; Sat, 18 Nov 2023 10:05:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700330715; x=1700935515; 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=MW0MBr+gVctwGbvP0/np911QdoIkjwoaRJHqWs+519WubkRGrns3XuX6iWyoxrN9zW aRw4r7heaSuZ0CqLW1fyOaxMNO3mKemlmL/DLGLi8MfxDbAdkZEy8Vam72UJf7/+CS3s SN4StERQdRlJBdJWJDjq6YUoLmNEJ7Mm+Ydupod/NggtvNDapEguvbI1JkidUaj3VEUr yLuF4V4fLUqoDO5lui9uBF32R8kbKR6rFND4F4aNoPGYrNjy7hYBYHsrOSBAUduKMGAj Es6zcSZ4AlNIl57PoOdvqt9gaGCK5z+4A2wrIt4ANHNFPlNEKZfNH7D+vZQ4uCc3zDYp uDQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700330715; x=1700935515; 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=SP2Z6jRJPUb/pbLRwH5JRd2vckZ7DKJKcsArYTM3fGqZGGeMzkLZpzB+XdXsZ2vmg5 6X4eQHrYaBuzUQOnP0TKO2PST5FsGzwI3AhAmSKqztGzybLYCMIeNWoy304b70Ff5rZr 8GTuKXJga61ffjESbU2kFkA9ydMmBidJ/8mzOEvhfAbvx8vqecvvYxGtIzGdvGvJov8z dJqBo5HIPehjpeAWLByN5+99I+g7uTp+Ix9In8muaoN7P5PVvU7/T/xLA2laK7sZcfIi ZOd3esgtjrhMYBsE1D3wBllOTNeDCJ+DyOVO3Uu75Z8KOzcBKo/3UPcrYjpx7bOjWTU8 N7CA== X-Gm-Message-State: AOJu0YwmApl/YGLlCjiJCNm76RlXvsw5+MJ9K7MtUb8CDfvST4stH6uc qI+JNnMjgT8OqUc/SDNtZIBwKGJOgzRT1Q== X-Received: by 2002:a17:906:2748:b0:9d4:84b6:8715 with SMTP id a8-20020a170906274800b009d484b68715mr2218532ejd.52.1700330715006; Sat, 18 Nov 2023 10:05:15 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 10:05:14 -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 06/10] drivers/i2c/busses/i2c-gpio.c: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Sat, 18 Nov 2023 19:05:00 +0100 Message-ID: <20231118180504.1785-7-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:49 -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);