Hello all,
I am trying to add the MPU9150 driver in to kernel 3.4.39
In the mach-sun71/core.c i have
#define MPU_IRQ gpio_to_irq(176) - i need the IRQ for PH00
static struct i2c_board_info __initdata inv_mpu_i2c2_board_info[] = {
{
I2C_BOARD_INFO("mpu9150", 0x69),
.irq = MPU_IRQ,
.platform_data = &mpu_gyro_data,
},
{
I2C_BOARD_INFO("ak8975", 0x0E),
.platform_data = &mpu_compass_data,
},
};
the call of gpio_to_irq or __gpio_to_irq gives me the following error
arch/arm/mach-sun7i/core.c:225:3: error: implicit declaration of function
‘gpio_to_irq’ [-Werror=implicit-function-declaration]
arch/arm/mach-sun7i/core.c:225:3: error: initializer element is not constant
arch/arm/mach-sun7i/core.c:225:3: error: (near initialization for
‘inv_mpu_i2c2_board_info[0].irq’)
cc1: some warnings being treated as errors
How can i find out the IRQ number for PH pins? (to avoid the use of
gpio_to_irq function)
Thank you,
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.