Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp969940rdh; Fri, 24 Nov 2023 02:17:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGByIK+KGtufQ1Rfnw7DvHzGyPuYAjBbSLG3Rc+faOWoydXixB4QUYhHCUOPBJkXmCEn4NQ X-Received: by 2002:a17:90b:3443:b0:27f:f655:e14c with SMTP id lj3-20020a17090b344300b0027ff655e14cmr2033065pjb.42.1700821056592; Fri, 24 Nov 2023 02:17:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700821056; cv=none; d=google.com; s=arc-20160816; b=ORt+0XqHQgoxciqCpWllfwjOW4V1WpDSzEMRJM37e4z0Dp5Skhu/2DDUxjSn8/rZ3v Aw6JaBYtMue2ABu8lXQE8PNIMLMwFUCx3GyWiCMQ9dOWEOD50ffcn9DuK4NL+1OM76ss cG9DNxS81PWEBNiVrlOOcmMmzYQpXvq045Mrl2jnQlZ/tlxnWlV98VkdVNjkMR9Ts2V0 uyxs0pQdwcs9eXUqK+GqdHPXRMgZPj0BHa4hBX9B9BZegtxnTrbP31F8WdXIhp5U1FKj Zt+Oybmt42WFwJjKLTlu1+WyyFnpQPesUlKZjcUFplrMv6A4Gz4CvZoDPcIv99rpLKM0 BmZg== 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=VbsbH1CThP42UiUJns2VDtTJbIoXHmLVJdFuam5YX4A=; fh=8UxKijcTEKZk8CY4fMw4YmQ9wGL7xNNAqfv4U5TYhZM=; b=jXHiLSDLlKfn87ohdSPmPECk3lebGTjv/bezTCbC4cLjwScIL8tyjvIb/Qj+GNmCNp hmLHlnT/G5zMzKry0mo0bpv/73TDtRCCMf+nlkfG7w8glg7BoQIuZ5s98N4tokQy732N kPC08zD3hP6aYzcwFxFgZ0/OBUsjsJNfXUkNMW0Ye+V1zl9d8TSwZECpPpJe6iXOSf5C e64/WWqpWfDgDxhZSuPOxPXBt2X3TJTZtY9VJYlZvDpjoumNhE4UdkS8QrNr08ef3o50 Tpxn77hiONrc7bU2Xsb/PnKwtYWkHEfYLuXyMDgOpWe3hdAnAkJWN+bEnWvAX9/89wJR 6reQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X9oKWUBI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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. [23.128.96.38]) by mx.google.com with ESMTPS id b3-20020a17090a9bc300b0027d01d450desi3412244pjw.86.2023.11.24.02.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:17:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X9oKWUBI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 795F480942D2; Fri, 24 Nov 2023 02:17:33 -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 S1345814AbjKXKRE (ORCPT + 99 others); Fri, 24 Nov 2023 05:17:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345658AbjKXKQd (ORCPT ); Fri, 24 Nov 2023 05:16:33 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F11E21981; Fri, 24 Nov 2023 02:16:33 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-54a95657df3so2603916a12.0; Fri, 24 Nov 2023 02:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700820992; x=1701425792; 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=VbsbH1CThP42UiUJns2VDtTJbIoXHmLVJdFuam5YX4A=; b=X9oKWUBID6OlknMR76MJ8/PNkQP+IG+lRE5M9SgcBKo/JZ4naaHuCI3TtoEhE3RvL1 CEvlGrDhruiRHkgZ9bUue+5m5VtBqjtV4nrTuKtcEtTLE5KmvqUnPzYZbFI2tLEPBSl4 9P8s/CDNOwkDDhoR6qyd/wOiBNhWMZ3Ah9c17hdtPV4daxBY+D4AbiUtxLrKgmUpCjMG isiEemXpWfZGCXci0Im2UIHrn3gJMgF/y/pS1uCWaYuV5DsN7uSwNFXMqNUvS7uzWKv4 /PX0ChxgiWUPgHUQRTsywQH83bn8yCMOArya6EwQACA2XGO+GhURd6Cv8Zw9QAhwIecy EYuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700820992; x=1701425792; 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=VbsbH1CThP42UiUJns2VDtTJbIoXHmLVJdFuam5YX4A=; b=QVcmSUqoKb0amngK6ZFz4hle4Y/iKjktHheJfO0pYGUVUj695yQymfyZ+989RsKF/E Yq3b+/xdoH1gAuQpCWAWK9lTUaUoYgT+yxxeDNOyF3KeLppY4wdlxPX4Wl6IpUmiH90y xLPHCP8SXuSXN4dyXR8oq6OUojLddXfhh/dfjpdu+S2u1DHGw7sZXdcyC/KqbztyEwhF SGQTarE8gqXS8dYtV2mWE8yOk8dgIIU3FFl5ikZF9IpUgYRVe5PX0sK8fUypUoxwJ06U svQ5d3LJLt0ObME1xnDgayGSXbCCfsxpeHdMywHHgo3G3/0qejt7srlYBq0YRvAJpht4 oJig== X-Gm-Message-State: AOJu0YxfPKR1ThakTVqAw2579TGvs8PBF4RKxmqo2lvL0qjwudTTcQkX JJxPQGo7ioST8lpW8lAXju8= X-Received: by 2002:a17:906:590e:b0:a04:837e:a955 with SMTP id h14-20020a170906590e00b00a04837ea955mr1609642ejq.32.1700820992151; Fri, 24 Nov 2023 02:16:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:16:31 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Sergey Kozlov , Mauro Carvalho Chehab Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Abylay Ospan , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 08/10] media: netup_unidvb: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Fri, 24 Nov 2023 11:16:17 +0100 Message-ID: <20231124101619.6470-9-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:33 -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/media/pci/netup_unidvb/netup_unidvb_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c b/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c index bd38ce444..46676f2c8 100644 --- a/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c +++ b/drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c @@ -289,7 +289,7 @@ static const struct i2c_algorithm netup_i2c_algorithm = { static const struct i2c_adapter netup_i2c_adapter = { .owner = THIS_MODULE, .name = NETUP_UNIDVB_NAME, - .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, + .class = I2C_CLASS_HWMON, .algo = &netup_i2c_algorithm, };