From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Ujfalusi, Peter" <peter.ujfalusi@ti.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>,
Liam Girdwood <lrg@ti.com>, Benoit Cousson <b-cousson@ti.com>,
linux-kernel@vger.kernel.org,
devicetree-discuss@lists.ozlabs.org
Subject: Re: [PATCH] Input: twl6040-vibra: Update for device tree support
Date: Sun, 20 May 2012 22:32:00 -0700 [thread overview]
Message-ID: <20120521053159.GA30285@core.coreip.homeip.net> (raw)
In-Reply-To: <CAPo=G1zf1XJcoKgCxMn3X09T0LOUG-9aw3iopqC7OPqcuc5hcQ@mail.gmail.com>
On Wed, May 16, 2012 at 10:55:13PM +0300, Ujfalusi, Peter wrote:
> Hi Dmitry,
>
> On Wed, May 16, 2012 at 10:35 PM, Dmitry Torokhov
> <dmitry.torokhov@gmail.com> wrote:
> > So in this case why don't you have parent parse all DT data and
> > construct instance of pdata for vibra driver to consume?
>
> If there is a need to change the parameters (add new ones for example)
> for the vibra driver in this way the change in code only need to be
> done in the vibra driver.
> If the MFD core would construct the pdata, in this case I would need
> to modify both the MFD core and vibra driver.
Hmm, I am getting:
CC drivers/input/misc/twl6040-vibra.o
drivers/input/misc/twl6040-vibra.c: In function ‘twl6040_vibra_probe’:
drivers/input/misc/twl6040-vibra.c:263:9: error: implicit declaration of
function ‘of_find_node_by_name’ [-Werror=implicit-function-declaration]
drivers/input/misc/twl6040-vibra.c:263:42: warning: initialization makes
pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make[1]: *** [drivers/input/misc/twl6040-vibra.o] Error 1
make: *** [drivers/input/misc/twl6040-vibra.o] Error 2
it looks like there is no stub for of_find_node_by_name().
Thanks.
--
Dmitry
prev parent reply other threads:[~2012-05-21 5:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-16 11:19 Peter Ujfalusi
2012-05-16 19:35 ` Dmitry Torokhov
2012-05-16 19:55 ` Ujfalusi, Peter
2012-05-17 0:59 ` Dmitry Torokhov
2012-05-21 5:32 ` Dmitry Torokhov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120521053159.GA30285@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=b-cousson@ti.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@ti.com \
--cc=peter.ujfalusi@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®