Re: [PATCH V4] regulator: DA9211 : new regulator driver

From: Mark Brown
Date: Wed Jul 09 2014 - 04:41:38 EST


On Wed, Jul 09, 2014 at 05:28:59PM +0900, James Ban wrote:

> How about below code for proper handle of interrupt?

That's fine, or you could have a return value which defaults to IRQ_NONE
and then set it to IRQ_HANDLED when you handle a particular bit - that
is more common since that way if multiple things happen to flag
simultaneously they can be handled in one call to the interrupt handler.

Attachment: signature.asc
Description: Digital signature