lkml.org 
[lkml]   [2010]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] iio-trig-gpio:Remove redundant gpio_request
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


\
 
 \ /
  Last update: 2010-04-23 02:17    [W:0.052 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site