Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1292925rdb; Sat, 18 Nov 2023 10:05:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/kR4qOyF1Yn59L3H2ilN3mhi2fI/t9XwaE5yOQuoYDDRHLhp5LVcM/msKuWUsHXiebXAo X-Received: by 2002:a05:6a00:2444:b0:68f:bb02:fdf with SMTP id d4-20020a056a00244400b0068fbb020fdfmr3465142pfj.27.1700330742023; Sat, 18 Nov 2023 10:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700330742; cv=none; d=google.com; s=arc-20160816; b=EsFtcRNMNkl856ohM+mtJGeumPiPm0DBP8VT5zBGdF5F6Genn3bDQzuoavazN9SFYW BROB6pSIsgkI+KFK70/fNZq7OBGuikLutDGNb3uwR51eLrH3liG8p64bBwU9xeN+TRvy HWfsqQV+evedDFh1JKSo6EADfrD17beUumXlNH/6YXfxHKURUap5XhZfE90b+RWPKsTs PKPS8GxDbsK+QGr1OVtxMXW1M2359yywNCUlm9hToz2Oucwr6pK3+PWb5V3K2ObI9BBk rr4oXJ/kcZ2G0m+iCmPeuKJBSwNjNB2hv+7uSVL1r5d5ERuSNs3pNJkxkG+C1t0Q2d8v 20GQ== 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=TvMhLdgxzmvHjkFyHLWsZZ7IOFCpPNkXdifeaawKQLI=; fh=QDQkTgZp6CGk/1SRx5Yx9yS3t+h589vreGP2pROli+g=; b=NGf2rvBun9duG6XiXk8voOK/9piUsl8+cT6Jur+PVIs/n3FJJsOsSvyX5ps/ZMo66A CKBGpIrYPICPWfDU9YumSY1bqpX80WkqscnkZwkjVcFQiFYai7WHMYc9/ysNtmoLjr88 x1+xBPZbZWj/cCG+ImbkepVhsRl8b2MQ3ivC5DNiI8ZiW36kfZJNgCbx+vjuaHGi+CmW F+JylguWyp/eDLzu9ve/jv+4QoA1+AdXhKKBcBVDzlk8xtr+pdhrOFboMCBCkDINGgru UYRzvWl94GfbAEl4/99SRD7xvjExeHXYDkzz2YIJyIZ1UA26EAJLvJW0qvc1weBByQja 6+qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VxjVD0jU; 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 p24-20020a63e658000000b005b90b310e26si4697189pgj.403.2023.11.18.10.05.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 10:05:41 -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=VxjVD0jU; 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 B5B3E803A594; Sat, 18 Nov 2023 10:05:39 -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 S230392AbjKRSF0 (ORCPT + 99 others); Sat, 18 Nov 2023 13:05:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230308AbjKRSFR (ORCPT ); Sat, 18 Nov 2023 13:05:17 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCD1BA6; Sat, 18 Nov 2023 10:05:13 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9db6cf8309cso402009966b.0; Sat, 18 Nov 2023 10:05:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700330712; x=1700935512; 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=TvMhLdgxzmvHjkFyHLWsZZ7IOFCpPNkXdifeaawKQLI=; b=VxjVD0jUoPbrMJcrPHMUImbdU75PDwjy0z4aAoFwhHZEz/G1qQj2iiMjK+b2V17Buk h+zYKK5TEXErteSmwdZ9ab00qYmrckbicwqts+mA23KB4neeDTAG2irtvsplINcOCjwt QQYCSgssPXecm9gnpGYjfAjYdV/2f001Wwf7NOOYwVpGKytrAKo1v7TtBaBWAEfK79bs eAGa6oqL4mM1+a+3bi3sshuh0KS7u3fz0wyGIhjfJOCeLiX2Zc7O6OQML4xkxlg3pw2b t+9yuvz6mqKzVI2l8uICmU/GlbvWY+AwhOj8hN86v5UitQzh1nQghrU/7CCg0Y6TNHOc vLsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700330712; x=1700935512; 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=TvMhLdgxzmvHjkFyHLWsZZ7IOFCpPNkXdifeaawKQLI=; b=KmW9mPAfebVObG+7UliNi4f1R6G3ysSII38xxDlsckwF/VIy6r4nNNamlMVojtxHI0 Rvrr4RfW0i5/QlM6lHbZje3C5ZR28Xhc1Fy3GJfc5dPU1+NYWDYdhHPtnJ7f1vZPXwZY ntHaRAP+BD8dHAlNjib+iwCAqaJeIx/6+IuakP8W0f4v32/mJCOUpjX44GCyLEKBjVKg tkG+w1vgmxPE6sJOQ+qWpEAR7KHkmQVyWqHpjeZpiXS3PUhd+mYuCBVFXJV87XfriHXO PNkivZGR7YB/9ewvJJVzGCgy/ZtTvYyweQaD2Z/1ynwEegUZKI1jc7CrKaFJSl7zRRIo ibYA== X-Gm-Message-State: AOJu0YwaE+Xn+Cu4ihDIEcut4hP8E08jSAPlpt5zhQ3UnnXvobvSazSi BxEv9BdNdaNEVOmAtJr3qDE= X-Received: by 2002:a17:907:84d3:b0:9e3:ef19:7205 with SMTP id oh19-20020a17090784d300b009e3ef197205mr1849277ejc.3.1700330712142; Sat, 18 Nov 2023 10:05:12 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 10:05:11 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Michael Ellerman Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Nicholas Piggin , Christophe Leroy , Andi Shyti , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/10] drivers/i2c/busses/i2c-pasemi-pci.c: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Sat, 18 Nov 2023 19:04:57 +0100 Message-ID: <20231118180504.1785-4-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: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-pasemi-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-pasemi-pci.c b/drivers/i2c/busses/i2c-pasemi-pci.c index cfc89e04e..77f90c743 100644 --- a/drivers/i2c/busses/i2c-pasemi-pci.c +++ b/drivers/i2c/busses/i2c-pasemi-pci.c @@ -56,7 +56,7 @@ static int pasemi_smb_pci_probe(struct pci_dev *dev, if (!smbus->ioaddr) return -EBUSY; - smbus->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SPD; + smbus->adapter.class = I2C_CLASS_HWMON; error = pasemi_i2c_common_probe(smbus); if (error) return error;