From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Alan Cox <alan@linux.intel.com>
Cc: greg@kroah.com, linux-input@vger.kernel.org
Subject: Re: [PATCH 4/6] * Register platform interface
Date: Fri, 23 Jul 2010 09:07:16 -0700 [thread overview]
Message-ID: <20100723160716.GA21546@core.coreip.homeip.net> (raw)
In-Reply-To: <20100723135219.19151.98855.stgit@localhost.localdomain>
Hi Alan,
On Fri, Jul 23, 2010 at 02:52:21PM +0100, Alan Cox wrote:
> -static struct spi_driver mrstouch_driver = {
> +static struct platform_driver mrstouch_driver = {
> .driver = {
> .name = "pmic_touch",
> - .bus = &spi_bus_type,
> .owner = THIS_MODULE,
> },
> .probe = mrstouch_probe,
> @@ -725,13 +722,13 @@ static struct spi_driver mrstouch_driver = {
>
> static int __init mrstouch_init(void)
> {
> - return spi_register_driver(&mrstouch_driver);
> + return platform_driver_register(&mrstouch_driver);
> }
> module_init(mrstouch_init);
>
> static void __exit mrstouch_exit(void)
> {
> - spi_unregister_driver(&mrstouch_driver);
> + platform_driver_unregister(&mrstouch_driver);
> }
> module_exit(mrstouch_exit);
>
I am confused here... Are you having a separate SPI driver create a
platform device and then you have mrstouch to bind to this intermediate
platform device? Are you doing that so you can introduce I2C interface
later? If so I think I prefer how adxl34x and ad7879 drivers are
structured - they are split into core and interface parts but do not
require extra devices/drivers (see in my 'next' brnach).
Thanks.
--
Dmitry
next prev parent reply other threads:[~2010-07-23 16:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-23 13:51 [PATCH 0/6] Complete the mrst touchscreen tidy Alan Cox
2010-07-23 13:51 ` [PATCH 1/6] mrst_touchscreen: clean up input side Alan Cox
2010-07-27 18:18 ` [PATCH 1/6] Staging: " Greg KH
2010-08-25 14:46 ` Dmitry Torokhov
2010-07-23 13:52 ` [PATCH 2/6] Input: mrst - more fixes Alan Cox
2010-07-23 13:52 ` [PATCH 3/6] mrst-touchscreen: Fix use before initialize in mrst_touch [Fix bug 2561] Alan Cox
2010-07-27 18:17 ` Greg KH
2010-07-23 13:52 ` [PATCH 4/6] * Register platform interface Alan Cox
2010-07-23 16:07 ` Dmitry Torokhov [this message]
2010-07-23 15:38 ` Alan Cox
2010-07-23 16:43 ` Dmitry Torokhov
2010-07-26 22:49 ` Greg KH
2010-07-27 8:16 ` Dmitry Torokhov
2010-07-27 15:22 ` Greg KH
2010-07-23 13:52 ` [PATCH 5/6] fix channel allocation in the touch screen driver Alan Cox
2010-07-23 13:52 ` [PATCH 6/6] Simplify en/disable of interrupts for NEC Alan Cox
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=20100723160716.GA21546@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=alan@linux.intel.com \
--cc=greg@kroah.com \
--cc=linux-input@vger.kernel.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).