From 4c88636964711337bf305eca82f929485b43412a Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 3 Jun 2001 22:01:49 +0000 Subject: [PATCH] put #ifdefs around lm87_ain() to eliminate compile warnings git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1116 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/lm87.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/chips/lm87.c b/kernel/chips/lm87.c index f56227e2..7bd2cf1f 100644 --- a/kernel/chips/lm87.c +++ b/kernel/chips/lm87.c @@ -287,8 +287,10 @@ static void lm87_init_client(struct i2c_client *client); static void lm87_in(struct i2c_client *client, int operation, int ctl_name, int *nrels_mag, long *results); +#if defined (LM87_AIN1) || defined (LM87_AIN2) static void lm87_ain(struct i2c_client *client, int operation, int ctl_name, int *nrels_mag, long *results); +#endif static void lm87_fan(struct i2c_client *client, int operation, int ctl_name, int *nrels_mag, long *results); static void lm87_temp(struct i2c_client *client, int operation, @@ -776,6 +778,7 @@ void lm87_in(struct i2c_client *client, int operation, int ctl_name, } } +#if defined (LM87_AIN1) || defined (LM87_AIN2) void lm87_ain(struct i2c_client *client, int operation, int ctl_name, int *nrels_mag, long *results) { @@ -820,6 +823,7 @@ void lm87_ain(struct i2c_client *client, int operation, int ctl_name, } } } +#endif void lm87_fan(struct i2c_client *client, int operation, int ctl_name, int *nrels_mag, long *results)