From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Tatsunosuke Tobita <junkpainting@gmail.com>
Cc: linux-input@vger.kernel.org,
Tatsunosuke Tobita <tobita.tatsunosuke@wacom.co.jp>
Subject: Re: [PATCH] Input: Add a driver to support for Wacom I2C Stylus Device
Date: Tue, 20 Dec 2011 14:05:04 +0800 [thread overview]
Message-ID: <4EF02590.5020409@cn.fujitsu.com> (raw)
In-Reply-To: <1324360008-32641-1-git-send-email-tobita.tatsunosuke@wacom.co.jp>
On 12/20/2011 01:46 PM, Tatsunosuke Tobita wrote:
> From: Tatsunosuke Tobita <tobita.tatsunosuke@wacom.co.jp>
>
> This driver supports for Wacom Stylus Device with I2C interface.
>
> Signed-off-by: Tatsunosuke Tobita <tobita.tatsunosuke@wacom.co.jp>
> ---
> drivers/input/touchscreen/wacom_i2c.c | 250 +++++++++++++++++++++++++++++++++
> drivers/input/touchscreen/wacom_i2c.h | 55 +++++++
> 2 files changed, 305 insertions(+), 0 deletions(-)
> create mode 100644 drivers/input/touchscreen/wacom_i2c.c
> create mode 100644 drivers/input/touchscreen/wacom_i2c.h
>
> diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom_i2c.c
> new file mode 100644
> index 0000000..157bcc5
> --- /dev/null
> +++ b/drivers/input/touchscreen/wacom_i2c.c
> +
> +static struct i2c_driver wacom_i2c_driver = {
> + .driver = {
> + .name = "wacom_i2c",
> + .owner = THIS_MODULE,
> + .pm = &wacom_i2c_pm,
> + },
> +
> + .probe = wacom_i2c_probe,
> + .remove = __devexit_p(wacom_i2c_remove),
> + .id_table = wacom_i2c_id,
> +};
> +
> +static int __init wacom_i2c_init(void)
> +{
> + return i2c_add_driver(&wacom_i2c_driver);
> +}
> +
> +static void __exit wacom_i2c_exit(void)
> +{
> + i2c_del_driver(&wacom_i2c_driver);
> +}
> +
> +module_init(wacom_i2c_init);
> +module_exit(wacom_i2c_exit);
You can use module_i2c_driver(wacom_i2c_driver) instead of module_init{exit},
it has been queued to driver-core-next already.
Thanks
-Wanlong Gao
next prev parent reply other threads:[~2011-12-20 6:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-20 5:46 [PATCH] Input: Add a driver to support for Wacom I2C Stylus Device Tatsunosuke Tobita
2011-12-20 6:05 ` Wanlong Gao [this message]
2011-12-20 6:32 ` Tatsunosuke Tobita
2011-12-20 7:36 ` Wanlong Gao
2011-12-20 14:28 ` Tatsunosuke Tobita
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=4EF02590.5020409@cn.fujitsu.com \
--to=gaowanlong@cn.fujitsu.com \
--cc=junkpainting@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=tobita.tatsunosuke@wacom.co.jp \
/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).