Re: [PATCH v7 3/8] rust: pwm: Add core 'Device' and 'Chip' object wrappers

Uwe Kleine-König
2025-07-03T06:42:11Z

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]