mfd: Add MAX8998 interrupts support

Use genirq and provide seperated file for interrupts support.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Joonyoung Shim
2010-09-10 18:36:39 +02:00
committed by Samuel Ortiz
parent 676e02d7a2
commit 2c7e6f5797
6 changed files with 358 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/*
* max8698.h - Voltage regulator driver for the Maxim 8998
* max8998.h - Voltage regulator driver for the Maxim 8998
*
* Copyright (C) 2009-2010 Samsung Electrnoics
* Kyungmin Park <kyungmin.park@samsung.com>
@@ -66,13 +66,16 @@ struct max8998_regulator_data {
/**
* struct max8998_board - packages regulator init data
* @num_regulators: number of regultors used
* @regulators: array of defined regulators
* @num_regulators: number of regultors used
* @irq_base: base IRQ number for max8998, required for IRQs
* @ono: power onoff IRQ number for max8998
*/
struct max8998_platform_data {
int num_regulators;
struct max8998_regulator_data *regulators;
int num_regulators;
int irq_base;
int ono;
};
#endif /* __LINUX_MFD_MAX8998_H */