From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D72812264C0; Sun, 17 May 2026 14:32:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779028336; cv=none; b=TBAu+vzs1Do8Wp+zvn1l7PQuNWEmpy3HTazkhQSXiC0NWFlSZ4Gd3Z8XcfTOy+ED8E+xiTkKRdAhaId/dyGRYLWGKsFA0ga07nnKsLp2Vdvs49ZzRSs6hTDGbhr1U3B2OtsHyBXu4tcdr8kQm26l0l291np4n626Ct6Hzx2K56o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779028336; c=relaxed/simple; bh=ulaOuKvCeT6t5jbenSb1LbQU7lp8mpBN6cfjZZoeaOw=; h=Mime-Version:Content-Type:Date:Message-Id:To:From:Subject:Cc: References:In-Reply-To; b=BKRcDvak/idARv0Qh9MkgAf3F9+YhzzdEPmezW9Ytt0TNwNseNKOs8Pia9wCtCt+/WoK//RA1UnoH6ZhSzgIFxGN7ygKgaUwBX+1W01LnFfxdDwT76ReKAPF1smRC9bz0+5Ux5WH/8vl6HxSWxekASRB4rihsBLTWeuJY1kypHs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b7hn5KyF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b7hn5KyF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A257AC2BCB0; Sun, 17 May 2026 14:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779028336; bh=ulaOuKvCeT6t5jbenSb1LbQU7lp8mpBN6cfjZZoeaOw=; h=Date:To:From:Subject:Cc:References:In-Reply-To:From; b=b7hn5KyFLmpCLuD3zK9Svmq9lIXAno/+es90/BP2+vlpLNcZVDHpVD1P+Je8H1j7A 3uhnNDNQxihXm10aFTSJ9zEvo2h8iB91wrpUdRqP5yQGKhrc02O52UHmADR6/yrlEY Ygpk51UPFE9/iMiKddQLVtziwtaVwY/8rLgVLeR8sG0Lr7gU5L+XYpbHwSUR1dBwR7 rE5V84b7XieaRLK7+0tZXUUShD/vW88LUIguHXd5MGejGAJsXrwxhAUmUbCdBk4xp5 P4UUB8RvE9/P+vY9VBAO3VKq8sVkJjWinWYjd5t+biZbp8UPCwc0hYJUhNbY6b3izq kBAHFbMBrhCeQ== Precedence: bulk X-Mailing-List: linux-pm@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 Date: Sun, 17 May 2026 16:32:09 +0200 Message-Id: To: , , , , , , , , , , , , , , , , , , , , , , , , From: "Danilo Krummrich" Subject: Re: [PATCH v3 03/27] rust: driver: decouple driver private data from driver type Cc: , , , , , , , References: <20260517000149.3226762-1-dakr@kernel.org> <20260517000149.3226762-4-dakr@kernel.org> In-Reply-To: <20260517000149.3226762-4-dakr@kernel.org> On Sun May 17, 2026 at 2:00 AM CEST, Danilo Krummrich wrote: > diff --git a/rust/kernel/driver.rs b/rust/kernel/driver.rs > index 586091cfa45c..3506b4e8bff9 100644 > --- a/rust/kernel/driver.rs > +++ b/rust/kernel/driver.rs > @@ -17,6 +17,9 @@ > //! /// The type holding information about each device ID supported = by the driver. > //! type IdInfo: 'static; > //! > +//! /// The type of the driver's bus device private data. > +//! type Data; Should be: @@ -13,10 +13,13 @@ //! The main driver interface is defined by a bus specific driver trait. F= or instance: //! //! ```ignore -//! pub trait Driver: Send { +//! pub trait Driver { //! /// The type holding information about each device ID supported by= the driver. //! type IdInfo: 'static; //! +//! /// The type of the driver's bus device private data. +//! type Data: Send;