[PATCH v7 4/7] pwm: ntxec: Add driver for PWM function in Netronix EC
Jonathan Neuschäfer
j.neuschaefer at gmx.net
Thu Jan 14 17:31:33 EST 2021
On Wed, Jan 13, 2021 at 11:46:45PM +0100, Andreas Kemnade wrote:
> On Tue, 12 Jan 2021 20:39:02 +0100
> Andreas Kemnade <andreas at kemnade.info> wrote:
>
> [...]
> > > +static int ntxec_pwm_probe(struct platform_device *pdev)
[...]
> > Hmm, I needed
> > chip->dev = &pdev->dev.parent to use the backlight example
> > in patch 2/7.
> > Not sure what the correct solution is. Maybe the pwm deserves its own
> > devicetree node.
> >
> probably just assigning the node from the parent.
>
> pdev->dev.of_node = pdev->dev.parent->of_node;
Ah, good catch, thanks. This works, I'll add it to the next version.
Jonathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210114/3f724fbf/attachment.sig>
More information about the linux-arm-kernel
mailing list