From: Greg KH <greg@kroah.com>
To: "Hennerich, Michael" <Michael.Hennerich@analog.com>
Cc: "gregkh@suse.de" <gregkh@suse.de>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
"uclinux-dist-devel@blackfin.uclinux.org"
<uclinux-dist-devel@blackfin.uclinux.org>,
Jonathan Cameron <jic23@cam.ac.uk>
Subject: Re: [PATCH] iio-trig-gpio:Remove redundant gpio_request
Date: Thu, 22 Apr 2010 16:37:41 -0700 [thread overview]
Message-ID: <20100422233741.GA4414@kroah.com> (raw)
In-Reply-To: <544AC56F16B56944AEC3BD4E3D5917712D6B1D9767@LIMKCMBX1.ad.analog.com>
On Tue, Mar 09, 2010 at 12:58:29PM +0000, Hennerich, Michael wrote:
>
> Remove redundant gpio_request:
> The GPIO used as trigger IRQ, is also requested as gpio, but actually never read.
>
> Use platform resource facility to get IRQs numbers and flags.
> Make sure this driver can be used with any system IRQ, not necessarily limited to GPIO-IRQs.
> Use dev_err(dev...) and friends instead of printk(KERN_ERR...)
>
>
> Signed-off-by: Michael Hennerich <Michael.Hennerich@analog.com>
> Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
>
>
> Index: drivers/staging/iio/trigger/iio-trig-gpio.c
> ===================================================================
> --- drivers/staging/iio/trigger/iio-trig-gpio.c (revision 7916)
> +++ drivers/staging/iio/trigger/iio-trig-gpio.c (working copy)
> @@ -13,7 +13,6 @@
> * TODO:
> *
> * Add board config elements to allow specification of startup settings.
> - * Add configuration settings (irq type etc)
> */
>
> #include <linux/kernel.h>
> @@ -30,7 +29,7 @@
>
> struct iio_gpio_trigger_info {
> struct mutex in_use;
> - int gpio;
> + unsigned int irq;
Your email client turned the tabs into spaces, and made this patch
unappliable. Can you fix this and resend your other patches as well
(they also had the same problem.)
Take a look at Documentation/SubmittingPatches for how to do this
correctly (you also need to make the diff one level down).
thanks,
greg k-h
next prev parent reply other threads:[~2010-04-23 0:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-09 12:58 [PATCH] iio-trig-gpio:Remove redundant gpio_request Hennerich, Michael
2010-04-22 23:37 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-04-26 8:36 michael.hennerich
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=20100422233741.GA4414@kroah.com \
--to=greg@kroah.com \
--cc=Michael.Hennerich@analog.com \
--cc=gregkh@suse.de \
--cc=jic23@cam.ac.uk \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=uclinux-dist-devel@blackfin.uclinux.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