Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp969682rdh; Fri, 24 Nov 2023 02:17:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmGpnpsz4x0zTnNxqueCjr4C8Pka3suEYLSm4kDNoilQ7ekpWVmCe0ugMxokP332Ap2n9M X-Received: by 2002:a17:902:ec85:b0:1cf:a9c4:7f4b with SMTP id x5-20020a170902ec8500b001cfa9c47f4bmr518459plg.24.1700821024675; Fri, 24 Nov 2023 02:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700821024; cv=none; d=google.com; s=arc-20160816; b=OH1Z3TLoyTC3vxkczpoedApSjA29suKwaJUVKY+Ua1qgxXcsLa/rm5MtzEOvXeIl6w CVoK4/EXZJ2IA6pekT98/pg+Q081WJOVvoW3g4KRMKWUGfVA/0XWHtsqzfol/GMbsthn oimSbZvnn+Qtu0WDIq7qwRWWqlSc0O4nBp7G8Y+emJ5HN6e/Z/AWZ31m5XooBpsqutRU yWywiusE2jtIZ73gfNdxrMYy9WRD8N1DQlqc0YsQ7QPiAzOckIHQOD+YlkmUd68BEmfY ThjwtMFwPB1x2r4Sv3Yow0ArGMsxvS+AaIEEoHeOQjHb20OJzj8jX2kItoXaz88+YOwZ cz4w== 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=hQhIen8bUSqCDzW7zy5bjryP0TL4VgTr4AnDnzWte8c=; fh=/XydnCTn8sV/eXLloPYmwBkymvlwcDC5WAFIEZKfpsY=; b=TWqf+0W1OG9ruEYA1DLMBpkY/LBzFJO7m8nk9ajRteq2dbYd4c2HGQ87Me/C4zez0k qgqHDOvwNmBraw3JoPJvXECVjlBf4Kgs/yl8OV7johJQ7Lx+E2C+YZuOnLnPHUYvmhqy wY0fTRV+vfoOXdGeVfOtPT9YBOx8frsQwDf+uGxxCSKVvcmiKMbysWgErXRoYGD8am5U KnHnOPqvXzU6aN58stu7vDa+5XgJGAQ8d4HZt5rmDGR4W2GmnIdo++4Gx/d6j/78m7oN K8EKQKUt8NuZd201W/VbimqUYWoyQkoUV/HIN8kw7JrsbsI8XKgoxIdjxvkyJafinzJU KzbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=K3NOkIAc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 6-20020a170902ee4600b001c7347e993esi3041333plo.17.2023.11.24.02.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:17:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=K3NOkIAc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 1E2A580AEFB1; Fri, 24 Nov 2023 02:17:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345523AbjKXKQj (ORCPT + 99 others); Fri, 24 Nov 2023 05:16:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345574AbjKXKQ3 (ORCPT ); Fri, 24 Nov 2023 05:16:29 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB1F9170C; Fri, 24 Nov 2023 02:16:27 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a002562bd8bso336032966b.0; Fri, 24 Nov 2023 02:16:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700820986; x=1701425786; 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=hQhIen8bUSqCDzW7zy5bjryP0TL4VgTr4AnDnzWte8c=; b=K3NOkIAcM6cvI+byTsQb+wnl+lA60J0Mx5TyV51B3hwahDIrANoISkUn4esd3sA2Vu mLtnVGazWfPsmp/T+uq4c1AwlB1Iwj/1enhd9tAOeZ+4IAztmkIjp064RtkdNCzDHxBd iaMimqRkJf6ngwqocqqLmZxPaV7DYRbAtX9PkeeNPTwWqbH0SBCE57nj1M/JcrxJloDl xHK567ucl7bJSNdYQbsXczRiGkD2Doz3uxBetXUVmbvwBSpYx7/U5Gf2QSh1ZUWvWajy /wT5JhEhxo2pwVTC8awD/sCnIGF1Ai8mZL5aT1kuEhNoZjLf9YzY266VeSFQc+K+tvvD vX6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700820986; x=1701425786; 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=hQhIen8bUSqCDzW7zy5bjryP0TL4VgTr4AnDnzWte8c=; b=bEBA0A7la7czxERNTgNYDKqtV43tPT0YpJykWyO6+oyOOkgsTDec6FS+hwxBf4dqYs PdSLYI+vusO0d4AZPXFt9vMs2HvCx8GcUTPYUw+4KZ+A0LVzOtThaS3OKpzUiHqL0bmG IBLrbjmvG/FxcBQNYAtFAM4ALjACxqj1fM5JA0Yr4lsNqUmuZL7ECqJWLq5hIFvGq7nj 9cWz8xZyBh1n/mrALKxVKfgqHTgryTAAi0sZR9cq+fvJhesZZf6j6NeubpixUaqnff2r K+HLZyyr4dWWakPDj+ubmoj0RZA8LLteW3Q7wGCrOOsULaJ0uHoCtc9uKbLeW2+08+3E xbbw== X-Gm-Message-State: AOJu0YwECQObZCgd3FC8Na794Q0fYsQCWLo3nNr6OObhpSLkAg70JBMN YccUFTaLckHsuFuj5ltOwW8= X-Received: by 2002:a17:906:78c:b0:a04:e1e7:d14c with SMTP id l12-20020a170906078c00b00a04e1e7d14cmr4941004ejc.32.1700820985634; Fri, 24 Nov 2023 02:16:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:16:25 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Viresh Kumar Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Johan Hovold , Alex Elder , Greg Kroah-Hartman , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/10] staging: greybus: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Fri, 24 Nov 2023 11:16:11 +0100 Message-ID: <20231124101619.6470-3-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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 24 Nov 2023 02:17:00 -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. Acked-by: Greg Kroah-Hartman Signed-off-by: Heiner Kallweit --- drivers/staging/greybus/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/i2c.c b/drivers/staging/greybus/i2c.c index de2f6516d..22325ab9d 100644 --- a/drivers/staging/greybus/i2c.c +++ b/drivers/staging/greybus/i2c.c @@ -264,7 +264,7 @@ static int gb_i2c_probe(struct gbphy_device *gbphy_dev, /* Looks good; up our i2c adapter */ adapter = &gb_i2c_dev->adapter; adapter->owner = THIS_MODULE; - adapter->class = I2C_CLASS_HWMON | I2C_CLASS_SPD; + adapter->class = I2C_CLASS_HWMON; adapter->algo = &gb_i2c_algorithm; adapter->dev.parent = &gbphy_dev->dev;