On Tue, Jul 15, 2008 at 11:34:23AM +0530, sasa sasa wrote:this is difficult to read, a better way would be to ret = desc->chip->set_type(irq, new->flags & IRQF_TRIGGER_MASK) if (ret) { spin_unlock_irqrestore(&desc->lock, flags); return ret; } If set_type() is meant to return an error, this should have been done from the start, instead of being ignored. tbh, the code could be further cleaned up by holding the (new->flags & IRQF_TRIGGER_MASK in a variable such as new_trigger which would stop the problem of wrapping lines... Hmm, I thought (when implementing the s3c24xx irq support) that requesting the IRQ should change the pin mode appropriately. -- Ben (ben@fluff.org, http://www.fluff.org/) 'a smiley only costs 4 bytes' --
| Jens Axboe | Re: [BUG] New Kernel Bugs |
| Faik Uygur | Re: Linux 2.6.21-rc1 |
| Ingo Molnar | [patch 02/13] syslets: add syslet.h include file, user API/ABI definitions |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: Data corruption issue with splice() on 2.6.27.10 |
| Steven Rostedt | Re: -rt scheduling: wakeup bug? |
