From nobody Mon Nov 25 12:37:04 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 BC896192B9D for ; Mon, 28 Oct 2024 07:35:33 +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=1730100935; cv=none; b=fSOmHbD+NLcduQFeNh4varRHoO3oxQ2q40t7aCclzH1WCTgUkNLPid9z3uGPMVtRCljxOYb/TuY5FjBh13lRDMXo3Mte6yj0G8na1O1pzUwe89wwUmRmcSF/+Duofx9Er6h7UdR6MmeExTRFWzofQKTm7i4gypPxlIGvLEHR7FY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730100935; c=relaxed/simple; bh=7qykuoXRggVkPigHGCQrlryYIh72TFBX8g9YgRJtnQY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=K3Gl/uSIDrIHJxfIKynlpPqmoBSi8Jh4k6JZ0EAXi0Lnb5BOMvbDsulFP7zFJ7R6b6IS+8SUN+CynGYAn9Me1I2PljZ3F3g6uZz0rDBBOyUNm4xbwp2ODuhC3qDsWoXbS9NEM527QEV4kn9C/onuHAaQ+MAek+QgmrFbwZSNWUQ= 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=Jc6bhKyx; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ItcJkDlW; 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="Jc6bhKyx"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ItcJkDlW" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1730100932; 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=ke5qweWt85bUkQA0Wor2RxSG+uxUvQzb1eYc8MKAi+M=; b=Jc6bhKyxsMMLohtN7tEtLr1Yu1svsxbHaOWYuxxwYCSls/f1RMCrYTjPVmoNZ1XbGs0z+u hYHmSbyEyunpIvjDQpQVxdtU8yI1tbSC9o09sLn57QEyqxfBfNFhYnYDM/MQyBpPYGiY3c c6Qb6F/7mfWw/5iEKZSGA9fyrO1pRupRmk0Q47Q2/VOjiyxWnLBYi6lMdLAdFfUAG7EzeM QK/GJUs26qMTCqvVgtqnONLXMmiXKZOvWiu5OEwNRmtELUOFbCOG0G5bw+1IsBJuvvz2wp n62Chf1rDAD4TtIyq0ddU+gAQtLSTXot7IwJzN1voFiF3DyDeY6bdKrXM0Bxkw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1730100932; 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=ke5qweWt85bUkQA0Wor2RxSG+uxUvQzb1eYc8MKAi+M=; b=ItcJkDlWwP4ghoj/RtLiUH1zMSwiUqvsrp+qRujcslTmTRYymp/J13fDXwHNqnefve/dKZ kNzTv+Z+etEQmVBA== 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 01/44] USB: chipidea: Switch to use hrtimer_setup() Date: Mon, 28 Oct 2024 08:34:37 +0100 Message-Id: <4cf9c2d0d93f5bc6ac6c377f92739793adca1f6e.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/usb/chipidea/otg_fsm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/otg_fsm.c b/drivers/usb/chipidea/otg_fsm.c index c17516c29b63..a093544482d5 100644 --- a/drivers/usb/chipidea/otg_fsm.c +++ b/drivers/usb/chipidea/otg_fsm.c @@ -424,8 +424,7 @@ static enum hrtimer_restart ci_otg_hrtimer_func(struct = hrtimer *t) /* Initialize timers */ static int ci_otg_init_timers(struct ci_hdrc *ci) { - hrtimer_init(&ci->otg_fsm_hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); - ci->otg_fsm_hrtimer.function =3D ci_otg_hrtimer_func; + hrtimer_setup(&ci->otg_fsm_hrtimer, ci_otg_hrtimer_func, CLOCK_MONOTONIC,= HRTIMER_MODE_ABS); =20 return 0; } --=20 2.39.5