From nobody Mon Nov 25 12:20:47 2024 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 85C6F1D90B9 for ; Mon, 28 Oct 2024 07:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730100939; cv=none; b=CYeD3xJeN8/DXBjLCexTnF/0nEVVfA3ZGIalaOYuTk+JDekkQBpH2nZbChjri8XARbTyI7Prh1GCzodA7O2xWgXlne7iiMyR4Rbu5KnLq3pQmzN1YDfDrJnOvyFLH7v2OrUIlDTk6QA/1rPPE+LG5Qs1uHvHtMflgIIqiUr3HRo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730100939; c=relaxed/simple; bh=3PYaFV7Oys5DkACuILmY2qDle/vQ2K7t6BDA9FRSnXA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jGtocnFugNA8iic9nqpnRORrrrscRLIeXOiHvmwOlstskG7Vz1AnQ7wzedFqXNrYjIgqDsuVGwT22zXJ1/ka7Vvu4XQDneopY0sP111rh4nr9CDxqiTN+6P8Lm4iEzFfoNOhSopGn/SOvQ6+qqU5TTuCvEmBeQrmb7mfCloEPOk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=TaLELn9Q; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ZPNg+VL4; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="TaLELn9Q"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZPNg+VL4" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1730100935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wnhs7Q2K97xaJ0+aOCp8WgzteNZ8vBXPvoSOZogCkNI=; b=TaLELn9QTSDqXy0665N+aBbrs3u4Tk7e3c9mJ5+lOdiEIWa2EFAmHLy9TiO4j+ZfdUqadC CX8Zb5DVZAuZWNoQBu6dDuPMX2UisFBxKr1HA6pv5Veet9s3Jn+gaUlubTu/Zs1niW4vAN fT3Q6ouUhQ6I/KDuGiwe9+mHOtkvJstC25seQh3Yn0uGbEx/h7OF7By72YpLOQGPAwWjLB t+wwlHxrc1MdKOmId4+k+XObyaDOD3uWA//15Pqwhr6O7D30fOoP9XqFAtcKVln0HiicKy OE5ETcoWrrstDmgZzWXcWkUbtip5Hf1PrGgALLIpkiX3rRuO/0gJ0BkhRZGL7Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1730100935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wnhs7Q2K97xaJ0+aOCp8WgzteNZ8vBXPvoSOZogCkNI=; b=ZPNg+VL4qTSDxqHAdXffEjzy+DosUOMxp2489cRoPjI0lEWhxaeFCwBTFGQ0+tdKdt+fJY wQUhRmWOsiK4sODA== To: Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner , Andreas Hindborg , Alice Ryhl , Miguel Ojeda , Kees Cook , linux-kernel@vger.kernel.org Cc: Nam Cao , Greg Kroah-Hartman Subject: [PATCH 09/44] serial: imx: Switch to use hrtimer_setup() Date: Mon, 28 Oct 2024 08:34:45 +0100 Message-Id: <6d72f1abc0f151345934fa7963326dfd74b66ee8.1729865485.git.namcao@linutronix.de> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There is a newly introduced hrtimer_setup() which will replace hrtimer_init(). This new function is similar to the old one, except that it also sanity-checks and initializes the timer's callback function. Switch to use this new function. Patch was created by using Coccinelle. Signed-off-by: Nam Cao --- Cc: Greg Kroah-Hartman --- drivers/tty/serial/imx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 67d4a72eda77..753325b6d125 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -2475,10 +2475,10 @@ static int imx_uart_probe(struct platform_device *p= dev) imx_uart_writel(sport, ucr3, UCR3); } =20 - hrtimer_init(&sport->trigger_start_tx, CLOCK_MONOTONIC, HRTIMER_MODE_REL); - hrtimer_init(&sport->trigger_stop_tx, CLOCK_MONOTONIC, HRTIMER_MODE_REL); - sport->trigger_start_tx.function =3D imx_trigger_start_tx; - sport->trigger_stop_tx.function =3D imx_trigger_stop_tx; + hrtimer_setup(&sport->trigger_start_tx, imx_trigger_start_tx, CLOCK_MONOT= ONIC, + HRTIMER_MODE_REL); + hrtimer_setup(&sport->trigger_stop_tx, imx_trigger_stop_tx, CLOCK_MONOTON= IC, + HRTIMER_MODE_REL); =20 /* * Allocate the IRQ(s) i.MX1 has three interrupts whereas later --=20 2.39.5