Skip to content

Commit

Permalink
mfd: Clean code in max8925
Browse files Browse the repository at this point in the history
Remove unused definitions.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Haojian Zhuang authored and Samuel Ortiz committed Mar 7, 2010
1 parent 28db388 commit 34c9120
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions include/linux/mfd/max8925.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,6 @@ enum {
#define TSC_IRQ_MASK (0x03)
#define RTC_IRQ_MASK (0x0c)

#define MAX8925_GPM_NUM_IRQ (40)
#define MAX8925_ADC_NUM_IRQ (8)
#define MAX8925_NUM_IRQ (MAX8925_GPM_NUM_IRQ \
+ MAX8925_ADC_NUM_IRQ)

#define MAX8925_MAX_REGULATOR (23)

#define MAX8925_NAME_SIZE (32)
Expand Down Expand Up @@ -200,17 +195,11 @@ enum {
MAX8925_NR_IRQS,
};

struct max8925_irq {
irq_handler_t handler;
void *data;
};

struct max8925_chip {
struct device *dev;
struct i2c_client *i2c;
struct i2c_client *adc;
struct i2c_client *rtc;
struct max8925_irq irqs[MAX8925_NUM_IRQ];
struct mutex io_lock;
struct mutex irq_lock;

Expand Down Expand Up @@ -257,12 +246,6 @@ extern int max8925_bulk_write(struct i2c_client *, int, int, unsigned char *);
extern int max8925_set_bits(struct i2c_client *, int, unsigned char,
unsigned char);

extern int max8925_request_irq(struct max8925_chip *, int,
irq_handler_t, void *);
extern int max8925_free_irq(struct max8925_chip *, int);
extern int max8925_mask_irq(struct max8925_chip *, int);
extern int max8925_unmask_irq(struct max8925_chip *, int);

extern int max8925_device_init(struct max8925_chip *,
struct max8925_platform_data *);
extern void max8925_device_exit(struct max8925_chip *);
Expand Down

0 comments on commit 34c9120

Please sign in to comment.