From: Dmitry Torokhov <dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] Input: mpu3050: add of_match table for device-tree probing
Date: Fri, 23 Dec 2011 01:22:46 -0800 [thread overview]
Message-ID: <20111223092246.GA7120@core.coreip.homeip.net> (raw)
In-Reply-To: <1324607992-2919-1-git-send-email-olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
Hi Olof,
On Thu, Dec 22, 2011 at 06:39:52PM -0800, Olof Johansson wrote:
> Adding invn,mpu3050 as the initial id.
>
I believe you also need to add this to
Documentation/devicetree/bindings/input/
Thanks!
> Signed-off-by: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
> ---
> drivers/input/misc/mpu3050.c | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/input/misc/mpu3050.c b/drivers/input/misc/mpu3050.c
> index f71dc72..e9a57e3 100644
> --- a/drivers/input/misc/mpu3050.c
> +++ b/drivers/input/misc/mpu3050.c
> @@ -348,11 +348,18 @@ static const struct i2c_device_id mpu3050_ids[] = {
> };
> MODULE_DEVICE_TABLE(i2c, mpu3050_ids);
>
> +static const struct of_device_id mpu3050_of_match[] = {
> + { .compatible = "invn,mpu3050", },
> + { },
> +};
> +MODULE_DEVICE_TABLE(of, mpu3050_of_match);
> +
> static struct i2c_driver mpu3050_i2c_driver = {
> .driver = {
> .name = "mpu3050",
> .owner = THIS_MODULE,
> .pm = &mpu3050_pm,
> + .of_match_table = mpu3050_of_match,
> },
> .probe = mpu3050_probe,
> .remove = __devexit_p(mpu3050_remove),
> --
> 1.7.8.GIT
>
--
Dmitry
next prev parent reply other threads:[~2011-12-23 9:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-23 2:39 [PATCH] Input: mpu3050: add of_match table for device-tree probing Olof Johansson
[not found] ` <1324607992-2919-1-git-send-email-olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
2011-12-23 9:22 ` Dmitry Torokhov [this message]
2011-12-23 15:58 ` Olof Johansson
2011-12-27 16:07 ` Rob Herring
2011-12-27 17:14 ` Olof Johansson
2012-01-02 8:42 ` Grant Likely
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=20111223092246.GA7120@core.coreip.homeip.net \
--to=dmitry.torokhov-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).