[Meego-kernel] [PATCH 3/5] Add bma023 platform data handler.
Kristen Carlson Accardi
kristen at linux.intel.com
Tue Jun 21 10:59:06 PDT 2011
On Mon, 20 Jun 2011 22:02:37 -0700
william.r.douglas at gmail.com wrote:
> From: William Douglas <william.douglas at intel.com>
> Because bma023 is to use sysfs instead of its gpio interupt, add
> a handler to set the irq to 0 in order to avoid error messages
> printed at startup (as the irq was set to 0xff before).
While this will work, the more technically correct thing to do
is set the irq to -1, since 0 is a valid irq number.
The type of irq is "int", so probably it's incorrectly being
read as 255 because someone set it as 0xff instead of -1.
More information about the MeeGo-kernel