Message ID | 20231118180504.1785-11-hkallweit1@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-i2c+bounces-250-incoming=patchwork.ozlabs.org@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=WGOXmJEi; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=linux-i2c+bounces-250-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SXhXB6Hx0z1yRV for <incoming@patchwork.ozlabs.org>; Sun, 19 Nov 2023 05:05:46 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D79C4B20B89 for <incoming@patchwork.ozlabs.org>; Sat, 18 Nov 2023 18:05:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFB971A727; Sat, 18 Nov 2023 18:05:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WGOXmJEi" X-Original-To: linux-i2c@vger.kernel.org Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3BB2D78; Sat, 18 Nov 2023 10:05:20 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-54553e4888bso4197136a12.2; Sat, 18 Nov 2023 10:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700330719; x=1700935519; 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=fBFVvNKhAX+OR3ALwztSAgxwFpQwZtLHeEc/T4Eghog=; b=WGOXmJEidN+cDr8AD1D47nzEkMzjYeh3Sob3AwND9W27Ms1Fq4wJ+pzTW7H52X2vV2 ludrrpy2nqJmzI7ro9TU08xpFneh8vEXZ0uzyHlVc7Td+TBHQ9iGyX5EvdkshaB9PX8V C36i1v9oHQjxq625z5vl5+xZlmIh0NC4Wftn9bSsktZtlOBXcchHGwJOwUSkBkWe1siW Fa2rTArM+oqJ4byXuRX7RFwjMxB/uy9pnx5nLbGAfY7uPMcGLvOSz+6RUuEfj4oI2+ML TmAIKPNXRWh803g2UoZDeSS37wqWW9grEbFVNmrv/4q79WZP7+RxcpuYsvZH2lBYJUaG 3Cbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700330719; x=1700935519; 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=fBFVvNKhAX+OR3ALwztSAgxwFpQwZtLHeEc/T4Eghog=; b=a/zaz3OH4+aY/iIuN1jZ1pqt9P+xk8UpiMJozj75e222ePGzcHtVoUlk6zomWYBO0t x3NTtzvE5Mw06e3caMnUHd5OJyrnfFWumA8/glwB80ElL2v6HKALhYCcPGiH0/Dpvep9 6HNAiBjmZwYgJIjLo8SP/UYF3wNoWtzp2qvXIqd+DBKio5QNyyOQqcpTRCR2Kx90MBo7 1Nisvr7XCxJ9nHY+iFdKIWLXa9l4gCGawnRvYFqnjz7FXiy22EE/SDwezua4NGwOY1nG zLqxchZY9pmIaBvScAfpAgWjGdkylEGlpXyCUNWTpsondzJtgJX0Y0AOCTO2o8W7f1BI TLzg== X-Gm-Message-State: AOJu0YwT+Dm2DNPhjoG8irkxq3QF7H45F6Peb9MJdR/CtQ82ncFIKAHG qOa+w6RmBn62LnVF9sOi8I4= X-Google-Smtp-Source: AGHT+IFLsodyE/iGxrAmK8Q8vjZyjsPvFWVlPjnusFENJcGXHtsHvV5fnFXdcbYSztPvp0PMT52eOQ== X-Received: by 2002:a17:906:5185:b0:9e6:da40:50bf with SMTP id y5-20020a170906518500b009e6da4050bfmr1970039ejk.8.1700330718903; Sat, 18 Nov 2023 10:05:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 10:05:18 -0800 (PST) From: Heiner Kallweit <hkallweit1@gmail.com> To: Wolfram Sang <wsa@kernel.org>, Jean Delvare <jdelvare@suse.com> Cc: linux-i2c@vger.kernel.org, Heiner Kallweit <hkallweit1@gmail.com>, Rudolf Marek <r.marek@assembler.cz>, Andi Shyti <andi.shyti@kernel.org>, linux-kernel@vger.kernel.org Subject: [PATCH 10/10] drivers/i2c/busses/i2c-ali1563.c: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON Date: Sat, 18 Nov 2023 19:05:04 +0100 Message-ID: <20231118180504.1785-11-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> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: <linux-i2c.vger.kernel.org> List-Subscribe: <mailto:linux-i2c+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-i2c+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON
|
expand
|
diff --git a/drivers/i2c/busses/i2c-ali1563.c b/drivers/i2c/busses/i2c-ali1563.c index 55a9e93fb..307fb0666 100644 --- a/drivers/i2c/busses/i2c-ali1563.c +++ b/drivers/i2c/busses/i2c-ali1563.c @@ -390,7 +390,7 @@ static const struct i2c_algorithm ali1563_algorithm = { static struct i2c_adapter ali1563_adapter = { .owner = THIS_MODULE, - .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, + .class = I2C_CLASS_HWMON, .algo = &ali1563_algorithm, };
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 <hkallweit1@gmail.com> --- drivers/i2c/busses/i2c-ali1563.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)