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] mrst_touchscreen: clean up input side
Date: Wed, 30 Jun 2010 12:46:27 -0700 [thread overview]
Message-ID: <20100630194626.GA12366@core.coreip.homeip.net> (raw)
In-Reply-To: <20100630173137.9776.52847.stgit@localhost.localdomain>
On Wed, Jun 30, 2010 at 06:31:58PM +0100, Alan Cox wrote:
>
> Still staging stuff but knocked out some of the problems.
>
>
> Fix most of the stuff that Dmitry pointed out. This leaves the mutex in IRQ
> and misuse of SPI to sort out.
>
Looks better, thanks for making the changes. I wonder if switching to
threaded IRQ willnot fix all this ugliness in pendetect implementation.
> static int mrstouch_remove(struct spi_device *spi)
__devexit
> {
> - mrstouch_debug("%s", __func__);
> free_irq(mrstouchdevp->irq, mrstouchdevp);
> - input_unregister_device(mrstouchdevp->input);
> - input_free_device(mrstouchdevp->input);
> if (mrstouchdevp->pendet_thrd)
> kthread_stop(mrstouchdevp->pendet_thrd);
> + input_unregister_device(mrstouchdevp->input);
> kfree(mrstouchdevp);
> return 0;
> }
> @@ -830,8 +776,6 @@ static struct spi_driver mrstouch_driver = {
> .owner = THIS_MODULE,
> },
> .probe = mrstouch_probe,
> - .suspend = mrstouch_suspend,
> - .resume = mrstouch_resume,
> .remove = mrstouch_remove,
__devexot_p()
> };
>
> @@ -839,11 +783,10 @@ static int __init mrstouch_module_init(void)
> {
> int err;
>
> - mrstouch_debug("%s", __func__);
> err = spi_register_driver(&mrstouch_driver);
> if (err) {
> - mrstouch_debug("%s(%d)", "SPI PENDET failed", err);
> - return -1;
> + printk(KERN_ERR "%s(%d)", "SPI PENDET failed", err);
> + return err;;
Extra semicolon... But I'd just do:
return spi_register_driver(&mrstouch_driver);
> }
>
> return 0;
> @@ -851,7 +794,6 @@ static int __init mrstouch_module_init(void)
>
> static void __exit mrstouch_module_exit(void)
> {
> - mrstouch_debug("%s", __func__);
> spi_unregister_driver(&mrstouch_driver);
> return;
Zap this return please.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2010-06-30 19:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-30 17:31 [PATCH] mrst_touchscreen: clean up input side Alan Cox
2010-06-30 19:46 ` Dmitry Torokhov [this message]
2010-07-02 2:30 ` Dmitry Torokhov
2010-07-08 20:44 ` Staging: " Greg KH
2010-07-08 22:46 ` 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=20100630194626.GA12366@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).