Thread (17 messages) 17 messages, 5 authors, 2021-01-14

Re: [PATCH v7 4/7] pwm: ntxec: Add driver for PWM function in Netronix EC

From: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Date: 2021-01-14 22:34:24
Also in: linux-arm-kernel, linux-pwm, linux-rtc, lkml

On Wed, Jan 13, 2021 at 11:46:45PM +0100, Andreas Kemnade wrote:
On Tue, 12 Jan 2021 20:39:02 +0100
Andreas Kemnade [off-list ref] wrote:

[...]
quoted
quoted
+static int ntxec_pwm_probe(struct platform_device *pdev)
[...]
quoted
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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help