[PATCH v7 3/8] rust: pwm: Add core 'Device' and 'Chip' object wrappers
Uwe Kleine-König
ukleinek at kernel.org
Wed Jul 2 23:42:08 PDT 2025
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20250703/e594d2a5/attachment.sig>
More information about the linux-riscv
mailing list