Re: [PATCH v7 3/8] rust: pwm: Add core 'Device' and 'Chip' object wrappers
From: Uwe Kleine-König
Date: Thu Jul 03 2025 - 02:42:20 EST
Hello Danilo,
On Wed, Jul 02, 2025 at 05:13:34PM +0200, Danilo Krummrich wrote:
> I assume the C API does guarantee that a struct pwm_device *always* holds a
> valid pointer to a struct pwm_chip?
Yes, a pwm_device holds a reference to the chip's dev. So until pwm_put
is called the chip won't go away.
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature