From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender5-op-o11.zoho.com (sender5-op-o11.zoho.com [165.173.182.11]) (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 A65B7521218; Tue, 13 Oct 2026 17:09:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=165.173.182.11 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791911353; cv=pass; b=D4ZJ5gMcnlqdfOrOoUrlY0MeVztE6Jgm8ZvyDpamdo1XUssU9Cgv1My6C7DF+ZgRtGs8MpVrf1+1A1ncpjkSkmUGawGaZO2A9TZFJBJhDL0/XeVpUl6f/tIa841XD8ZrmDft9HjyiDyP0jZ7lgJidCkV6TR8z1ZyBiyEn1NJxg8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791911353; c=relaxed/simple; bh=tu/hQNcP8ZDoPcNHqT0vAB1vMxrlfTiLK/eb2SWsA5Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fGW0z1iOEaNuBSiOfaB5i7gXEChDIRoIRkpqp2+OLDZIUnI0uHJJI12b85eKgS0rGGOMDox1BeoT4OZe0EOEUPlP0guZzZhlc+LRn8/3j+60QdfmvQbe4j+IJmgCN4aP/YVQPrACUOU1vUmRA46qioCZsXuJJs+39vAH/FDal9E= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=daniel.almeida@collabora.com header.b=KiapTGFz; arc=pass smtp.client-ip=165.173.182.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=daniel.almeida@collabora.com header.b="KiapTGFz" ARC-Seal: i=1; a=rsa-sha256; t=1791911297; cv=none; d=zohomail.com; s=zohoarc; b=LCDAZshFs9QieBawKJLTiEZ04vnvyc3jjuj6TIj2kXSSccaEYlrXyepR3YL+J+zlJuFymqXBVmduxyJQ7QozZ5W/B7kqMuoHv8f6yaRV4WowKk5qo1QidePDpQ3qCJ7X1lBQVp5bCVZ3mgW1ZkCAGmD7+WNZ8SN9Ww9EG2X4s5I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791911297; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=dl02gomnqfiM20wyvBMjwA2Z00g8ChZY513BoOmAVuU=; b=P5JLmwvKEIo3HqWJromlvdPMhvOvHVW5qE1c5w29PPGb8t3q6JWzfpUzofKtz3fpmAXJ4GpM+5lo1dku9f798yQCBRNTNPWo1NAaK27sUwTA1IUChO0jSnwQMwKSMrwz0ZnZ0XKoqwAQdMo5LqlISKnExjZmS73xWVKMDmUe+hg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=daniel.almeida@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1791911297; s=zohomail; d=collabora.com; i=daniel.almeida@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=dl02gomnqfiM20wyvBMjwA2Z00g8ChZY513BoOmAVuU=; b=KiapTGFzcW9BMa5iEWRzL4ywGVomeQ2dCpA4fUivCmVeDKn30aV5KJBW/25XNi1G mJuBdVZkKoyx5DaqbA33jQoE4TNhUwSbjItC81Hh5T3P6hka743Dqv1KA8koG7csbHi djZv5th67bTQuW6WcTDLW2ktFf4miBL/FM+xcJ2k= Received: by smtp.zohomail.com with SMTPS id 1791911295666526.175192816721; Tue, 13 Oct 2026 10:08:15 -0700 (PDT) From: Daniel Almeida Date: Tue, 13 Oct 2026 14:07:40 -0300 Subject: [PATCH v6 1/7] rust: clk: use 'kernel vertical style' for imports Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20261013-clk-type-state-v6-1-a5e9977b3509@collabora.com> References: <20261013-clk-type-state-v6-0-a5e9977b3509@collabora.com> In-Reply-To: <20261013-clk-type-state-v6-0-a5e9977b3509@collabora.com> To: "Rafael J. Wysocki" , Viresh Kumar , Danilo Krummrich , Alice Ryhl , Daniel Almeida , David Airlie , Simona Vetter , Michal Wilczynski , Drew Fustini , Guo Ren , Fu Wei , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Stephen Boyd , Brian Masney , Jerome Brunet , Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Tamir Duberstein , Alexandre Courbot Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-riscv@lists.infradead.org, linux-pwm@vger.kernel.org, linux-clk@vger.kernel.org, rust-for-linux@vger.kernel.org, Boris Brezillon , =?utf-8?q?Onur_=C3=96zkan?= , Maurice Hieronymus X-Mailer: b4 0.15.2 X-ZohoMailClient: External Convert all imports to use the new import style. This will make it easier to land new changes in the future. Drop the `Result` import, which the prelude already provides. No change of functionality implied. Link: https://docs.kernel.org/rust/coding-guidelines.html#imports Reviewed-by: Alexandre Courbot Reviewed-by: Onur Özkan Signed-off-by: Daniel Almeida --- rust/kernel/clk.rs | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/rust/kernel/clk.rs b/rust/kernel/clk.rs index f04f5c4a03d6..c73fe7c57251 100644 --- a/rust/kernel/clk.rs +++ b/rust/kernel/clk.rs @@ -96,11 +96,17 @@ mod common_clk { use super::Hertz; use crate::{ device::Device, - error::{from_err_ptr, to_result, Result}, - prelude::*, + error::{ + from_err_ptr, + to_result, // + }, + prelude::*, // }; - use core::{ops::Deref, ptr}; + use core::{ + ops::Deref, + ptr, // + }; /// A reference-counted clock. /// @@ -119,9 +125,11 @@ mod common_clk { /// The following example demonstrates how to obtain and configure a clock for a device. /// /// ``` - /// use kernel::clk::{Clk, Hertz}; + /// use kernel::clk::{ + /// Clk, + /// Hertz, + /// }; /// use kernel::device::Device; - /// use kernel::error::Result; /// /// fn configure_clk(dev: &Device) -> Result { /// let clk = Clk::get(dev, Some(c"apb_clk"))?; @@ -293,9 +301,11 @@ fn drop(&mut self) { /// device. The code functions correctly whether or not the clock is available. /// /// ``` - /// use kernel::clk::{OptionalClk, Hertz}; + /// use kernel::clk::{ + /// Hertz, + /// OptionalClk, + /// }; /// use kernel::device::Device; - /// use kernel::error::Result; /// /// fn configure_clk(dev: &Device) -> Result { /// let clk = OptionalClk::get(dev, Some(c"apb_clk"))?; -- 2.56.0