From patchwork Sat Jul 6 11:20:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 811308 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1ACFF7764E for ; Sat, 6 Jul 2024 11:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720264899; cv=none; b=O4XoHnUMirElNKxWO+jQR6mmAXN3MwJN7ychzgZBkL/ixUKN+alOsy6vdEkWEp8qQW2BTfr+w4QfS3tXqHhC0moR45c9+v74eup8gSoBuH+2qqAsRKSXiSiQTvvOBNuEDEZc8ZHnh9AnCOHO5bwnvcsy3skW8/0jgwQroeBnH7A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720264899; c=relaxed/simple; bh=OX9CjYRsfJ22YYXwzBRTLJyGxtenvozbtleXFhMnIP4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A9mVxNVCATgJZTaZQyWzbxQJtkCTVezvdnk7sbTI8r2JX+58kz1JY+L3DJz0zN3WSjfwpniDTS4tjdwZr74FiV6I1rUOOdUCCXmAECMi8KWdHV2C+cZ1dy2yyLfpN3g4j543N+J4zUCWZLCapDD2RrQuTlL2EyWjrwyeksp+LKY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=ijjZ2CCp; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="ijjZ2CCp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=+cVn6HCJi9F61+sEb1wYIiiZCk6zR3MKCVcbdGfMsoA=; b=ijjZ2C CpVFTNHD/mz72bK98pUY287VltQbhGcOEdB3mobuPV3XiWokp+6k59EWniRbAihG 102sHRy1IJsvu8ErQ+sfBUlbErtTIetQcTNqim3AC77qJ7CKxEPPqv+9Z92Q0Fac Fjo3w1yrTs65Zs0zjB+75yc667NA0cxGCL23UUmb6LxFeeFLrocWMbtNnixptLb/ TG7KOfbLpymsAYfuNaKrytxqPD1yC8vZ/8dRs25BV+W/Ez+76pFN2c15h0oSDJ58 4+cMhifuvoZBoBwpaCly8akz5E0itiDY+zUWE2F7GSmB9ye82MUtsHvI6UrnrnSq WoAaPZ3alBW92F8Q== Received: (qmail 3809506 invoked from network); 6 Jul 2024 13:21:24 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 6 Jul 2024 13:21:24 +0200 X-UD-Smtp-Session: l3s3148p1@18NXYZIcxNJQT+F6 From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Andi Shyti , Thor Thayer , linux-kernel@vger.kernel.org Subject: [PATCH v2 03/60] i2c: altera: reword according to newest specification Date: Sat, 6 Jul 2024 13:20:03 +0200 Message-ID: <20240706112116.24543-4-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240706112116.24543-1-wsa+renesas@sang-engineering.com> References: <20240706112116.24543-1-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Change the wording of this driver wrt. the newest I2C v7 and SMBus 3.2 specifications and replace "master/slave" with more appropriate terms. Signed-off-by: Wolfram Sang Reviewed-by: Andi Shyti --- drivers/i2c/busses/i2c-altera.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-altera.c b/drivers/i2c/busses/i2c-altera.c index 252fbd175fb1..f4dde08a3b92 100644 --- a/drivers/i2c/busses/i2c-altera.c +++ b/drivers/i2c/busses/i2c-altera.c @@ -168,7 +168,7 @@ static void altr_i2c_init(struct altr_i2c_dev *idev) /* SDA Hold Time, 300ns */ writel(3 * clk_mhz / 10, idev->base + ALTR_I2C_SDA_HOLD); - /* Mask all master interrupt bits */ + /* Mask all interrupt bits */ altr_i2c_int_enable(idev, ALTR_I2C_ALL_IRQ, false); } @@ -376,7 +376,7 @@ static u32 altr_i2c_func(struct i2c_adapter *adap) } static const struct i2c_algorithm altr_i2c_algo = { - .master_xfer = altr_i2c_xfer, + .xfer = altr_i2c_xfer, .functionality = altr_i2c_func, };