[PATCH v5 003/111] pwm: Provide a macro to get the parent device of a given chip
Florian Fainelli
florian.fainelli at broadcom.com
Thu Jan 25 11:32:47 PST 2024
On 1/25/24 04:08, Uwe Kleine-König wrote:
> Currently a pwm_chip stores in its struct device *dev member a pointer
> to the parent device. Preparing a change that embeds a full struct
> device in struct pwm_chip, this accessor macro should be used in all
> drivers directly accessing chip->dev now. This way struct pwm_chip and
> this macro can be changed without having to touch all drivers in the
> same change set.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Nit: this is not a macro but an inline function.
--
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4221 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20240125/36d046c5/attachment.p7s>
More information about the linux-riscv
mailing list