Skip to contentSkip to conversation

i2c changes Was: sensors in 2.5.54

DISCUSSION Kyosti Malkki 5 participants 10 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines · Mark Studebaker

The patch for i2c-amd756, i2c-amd8111, adm1021, and lm75, submitted by Pavel Machek, has been included, with modifications, in kernel 2.5.54 by Cristoph Hellwig.

Attached patch removes unnecessary include of i2c header files at few locations. With luck it still compiles. Should..

It seems that sysctl enumeration has moved out of sensors.h, but libsensors depends on this. While the list is long and boring, so is linux/sysctl.h. I believe we want it back.

Quoted 8 lines

Note that we'll have to go through the changes he made, figure them out, backport them into CVS, and apply to the other drivers.

This will be somewhat easier after we remove 2.2 support. But there are still several 2.4<->2.5 differences which we will have to keep out of CVS, or at least #ifdef, and the patcher will have to deal with those.

One could generate a branch in CVS from i2c release V2-6-4 to trace back changes in 2.5 tree, and then reapply it on 2.5 to sync revision tags. I briefly reviewed some i2c diffs, they mostly handle module refcounting and declarations which are not likely to change for 2.4 support.

Optimally, we could keep up with the pace and have relevant 2.5 patches go through i2c CVS first and have files in sync. This seems not be the case, so I say it is better to remove revision tags from i2c files in Linus's tree altogether.

Signature · 97 lines
  Ky?sti M?lkki
  [email protected]
-------------- next part --------------
diff -u -r orig/linux-2.5.54/drivers/media/video/tda7432.c linux-2.5.54/drivers/media/video/tda7432.c
--- orig/linux-2.5.54/drivers/media/video/tda7432.c	Thu Jan  2 05:22:35 2003
+++ linux-2.5.54/drivers/media/video/tda7432.c	Mon Jan  6 13:52:48 2003
@@ -42,7 +42,6 @@
 #include <linux/slab.h>
 #include <linux/videodev.h>
 #include <linux/i2c.h>
-#include <linux/i2c-algo-bit.h>
 
 #include "bttv.h"
 #include "audiochip.h"
Only in linux-2.5.54/drivers/media/video: tda7432.c~
diff -u -r orig/linux-2.5.54/drivers/media/video/tda9875.c linux-2.5.54/drivers/media/video/tda9875.c
--- orig/linux-2.5.54/drivers/media/video/tda9875.c	Thu Jan  2 05:21:51 2003
+++ linux-2.5.54/drivers/media/video/tda9875.c	Mon Jan  6 13:53:02 2003
@@ -27,7 +27,6 @@
 #include <linux/slab.h>
 #include <linux/videodev.h>
 #include <linux/i2c.h>
-#include <linux/i2c-algo-bit.h>
 #include <linux/init.h>
 
 #include "bttv.h"
Only in linux-2.5.54/drivers/media/video: tda9875.c~
diff -u -r orig/linux-2.5.54/drivers/media/video/tvaudio.c linux-2.5.54/drivers/media/video/tvaudio.c
--- orig/linux-2.5.54/drivers/media/video/tvaudio.c	Thu Jan  2 05:21:40 2003
+++ linux-2.5.54/drivers/media/video/tvaudio.c	Mon Jan  6 13:52:31 2003
@@ -25,7 +25,6 @@
 #include <linux/slab.h>
 #include <linux/videodev.h>
 #include <linux/i2c.h>
-#include <linux/i2c-algo-bit.h>
 #include <linux/init.h>
 #include <linux/smp_lock.h>
 
Only in linux-2.5.54/drivers/media/video: tvaudio.c~
diff -u -r orig/linux-2.5.54/drivers/video/matrox/matroxfb_crtc2.h linux-2.5.54/drivers/video/matrox/matroxfb_crtc2.h
--- orig/linux-2.5.54/drivers/video/matrox/matroxfb_crtc2.h	Thu Jan  2 05:21:11 2003
+++ linux-2.5.54/drivers/video/matrox/matroxfb_crtc2.h	Mon Jan  6 14:03:04 2003
@@ -2,8 +2,6 @@
 #define __MATROXFB_CRTC2_H__
 
 #include <linux/ioctl.h>
-#include <linux/i2c.h>
-#include <linux/i2c-algo-bit.h>
 #include "matroxfb_base.h"
 
 struct matroxfb_dh_fb_info {
Only in linux-2.5.54/drivers/video/matrox: matroxfb_crtc2.h~
diff -u -r orig/linux-2.5.54/sound/oss/dmasound/dmasound_awacs.c linux-2.5.54/sound/oss/dmasound/dmasound_awacs.c
--- orig/linux-2.5.54/sound/oss/dmasound/dmasound_awacs.c	Thu Jan  2 05:21:41 2003
+++ linux-2.5.54/sound/oss/dmasound/dmasound_awacs.c	Mon Jan  6 18:59:16 2003
@@ -76,8 +76,6 @@
 #include <linux/pmu.h>
 #endif
 
-#include <linux/i2c-dev.h>
-
 #include <asm/uaccess.h>
 #include <asm/prom.h>
 #include <asm/machdep.h>
diff -u -r orig/linux-2.5.54/sound/ppc/daca.c linux-2.5.54/sound/ppc/daca.c
--- orig/linux-2.5.54/sound/ppc/daca.c	Thu Jan  2 05:21:10 2003
+++ linux-2.5.54/sound/ppc/daca.c	Mon Jan  6 18:52:22 2003
@@ -22,7 +22,6 @@
 #include <sound/driver.h>
 #include <linux/init.h>
 #include <linux/i2c.h>
-#include <linux/i2c-dev.h>
 #include <linux/kmod.h>
 #include <linux/slab.h>
 #include <sound/core.h>
diff -u -r orig/linux-2.5.54/sound/ppc/keywest.c linux-2.5.54/sound/ppc/keywest.c
--- orig/linux-2.5.54/sound/ppc/keywest.c	Thu Jan  2 05:23:10 2003
+++ linux-2.5.54/sound/ppc/keywest.c	Mon Jan  6 18:56:15 2003
@@ -22,7 +22,6 @@
 #include <sound/driver.h>
 #include <linux/init.h>
 #include <linux/i2c.h>
-#include <linux/i2c-dev.h>
 #include <linux/slab.h>
 #include <sound/core.h>
 #include "pmac.h"
diff -u -r orig/linux-2.5.54/sound/ppc/tumbler.c linux-2.5.54/sound/ppc/tumbler.c
--- orig/linux-2.5.54/sound/ppc/tumbler.c	Thu Jan  2 05:20:59 2003
+++ linux-2.5.54/sound/ppc/tumbler.c	Mon Jan  6 18:53:24 2003
@@ -23,7 +23,6 @@
 #include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/i2c.h>
-#include <linux/i2c-dev.h>
 #include <linux/kmod.h>
 #include <linux/slab.h>
 #include <sound/core.h>
#1 lore raw

Hi!

Quoted 6 lines
Quoted 3 lines

The patch for i2c-amd756, i2c-amd8111, adm1021, and lm75, submitted by Pavel Machek, has been included, with modifications, in kernel 2.5.54 by Cristoph Hellwig.

Attached patch removes unnecessary include of i2c header files at few locations. With luck it still compiles. Should..

In such case, post it to Linus ;-) [or maybe trivial patch monkey].

Quoted 14 lines
Quoted 8 lines

Note that we'll have to go through the changes he made, figure them out, backport them into CVS, and apply to the other drivers.

This will be somewhat easier after we remove 2.2 support. But there are still several 2.4<->2.5 differences which we will have to keep out of CVS, or at least #ifdef, and the patcher will have to deal with those.

One could generate a branch in CVS from i2c release V2-6-4 to trace back changes in 2.5 tree, and then reapply it on 2.5 to sync revision tags. I briefly reviewed some i2c diffs, they mostly handle module refcounting and declarations which are not likely to change for 2.4 support.

Quoted 4 lines

Optimally, we could keep up with the pace and have relevant 2.5 patches go through i2c CVS first and have files in sync. This seems not be the case, so I say it is better to remove revision tags from i2c files in Linus's tree altogether.

Well, you know linus's opinion about CVS. Probably the best thing would be to remove kernel drivers from your CVS and do all development in the Linus's tree....
Pavel

Signature · 2 lines
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
#2 lore raw
In reply to Kyosti Malkki

Hi!

Quoted 9 lines
Quoted 5 lines

One could generate a branch in CVS from i2c release V2-6-4 to trace back changes in 2.5 tree, and then reapply it on 2.5 to sync revision tags. I briefly reviewed some i2c diffs, they mostly handle module refcounting and declarations which are not likely to change for 2.4 support.

I have Pavel's mail from December 4 to linux-kernel with his submission, which is taken from the contents of our 2.7.0 release of Dec. 8. Right Pavel? (if you made changes before you submitted the patch

I made multiple submissions and slightly cleaned up files in between (comments came after submissions of what needs to be fixed). I certainly did not do any functional changes.

Quoted 1 line

let's start by having you check those changes in!)

I don't think I have cvs write access...

Pavel

Signature · 2 lines
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
#3 lore raw
In reply to Kyosti Malkki

Hi!

Quoted 11 lines
Quoted 4 lines

Optimally, we could keep up with the pace and have relevant 2.5 patches go through i2c CVS first and have files in sync. This seems not be the case, so I say it is better to remove revision tags from i2c files in Linus's tree altogether.

For i2c, we've kept up for years - in fact we have the opposite problem now, we have lots of stuff in the i2c tree that we haven't gotten in to either 2.4 or 2.5.
(2.4 is at our release 2.6.1, about 15 months old, and 2.5 is at 2.6.4, about
15 months old).

Hmm, you probably need to patch-bomb Linus a little ;-).

Quoted 3 lines

Cristoph's changes are largest I can recall that didn't come from us. That's what happens when we aren't getting changes in - other folks make the changes and we get where we are now.

Well, I hope it is not too bad. One solution to cvs-and-linus-out-of-sync is of course to drop 2.5 from your CVS and do all development through Linus... He's not *that* bad at accepting patches from maintainers.

If you want to keep 2.5 in your CVS, easiest probably is to scan patch-2.5.XX from linus for any i2c/sensors changes, and if they are applicable, just apply them to CVS...
Pavel

Signature · 2 lines
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?
#4 lore raw
In reply to Kyosti Malkki
Quoted 4 lines · Albert Cranford

Let me see if I can get sensors.h into the kernel along with changes below to adm1021.c and lm75.c. What do you think? I need to tweek sensors.h. OK?

I removed sensors.h for a reason. If you want the definitions in headers add one header per driver.

#5 lore raw
In reply to Kyosti Malkki
Quoted 3 lines · Kyosti Malkki

It seems that sysctl enumeration has moved out of sensors.h, but libsensors depends on this. While the list is long and boring, so is linux/sysctl.h. I believe we want it back.

Userland programs are not supposed to include kernel headers.

#6 lore raw
In reply to Kyosti Malkki
Quoted 8 lines · Kyosti Malkki
Quoted 3 lines · Mark Studebaker

The patch for i2c-amd756, i2c-amd8111, adm1021, and lm75, submitted by Pavel Machek, has been included, with modifications, in kernel 2.5.54 by Cristoph Hellwig.

Quoted 7 lines

Attached patch removes unnecessary include of i2c header files at few locations. With luck it still compiles. Should..

It seems that sysctl enumeration has moved out of sensors.h, but libsensors depends on this. While the list is long and boring, so is linux/sysctl.h. I believe we want it back.

agreed

Quoted 11 lines
Quoted 9 lines

Note that we'll have to go through the changes he made, figure them out, backport them into CVS, and apply to the other drivers.

This will be somewhat easier after we remove 2.2 support. But there are still several 2.4<->2.5 differences which we will have to keep out of CVS, or at least #ifdef, and the patcher will have to deal with those.

Quoted 5 lines

One could generate a branch in CVS from i2c release V2-6-4 to trace back changes in 2.5 tree, and then reapply it on 2.5 to sync revision tags. I briefly reviewed some i2c diffs, they mostly handle module refcounting and declarations which are not likely to change for 2.4 support.

I have Pavel's mail from December 4 to linux-kernel with his submission, which is taken from the contents of our 2.7.0 release of Dec. 8. Right Pavel? (if you made changes before you submitted the patch let's start by having you check those changes in!)
So I think we only have to go back to 2.7.0, so the resync won't be _too_ bad.

If we do branch we shouldn't do it before 2.8.0, when we remove 2.2 support.

Hopefully there aren't many 2.4-2.5 differences and the 2.5 patch submitter could keep up manually rather than having to branch.

If somebody could generate and submit the refcount changes to 2.4, would that make things better- or worse?

Quoted 6 lines

Optimally, we could keep up with the pace and have relevant 2.5 patches go through i2c CVS first and have files in sync. This seems not be the case, so I say it is better to remove revision tags from i2c files in Linus's tree altogether.

For i2c, we've kept up for years - in fact we have the opposite problem now, we have lots of stuff in the i2c tree that we haven't gotten in to either 2.4 or 2.5. (2.4 is at our release 2.6.1, about 15 months old, and 2.5 is at 2.6.4, about 15 months old).

Cristoph's changes are largest I can recall that didn't come from us. That's what happens when we aren't getting changes in - other folks make the changes and we get where we are now.

#7 lore raw
In reply to Kyosti Malkki
Quoted 13 lines · Mark Studebaker
Quoted 11 lines · Kyosti Malkki
Quoted 3 lines · Mark Studebaker

The patch for i2c-amd756, i2c-amd8111, adm1021, and lm75, submitted by Pavel Machek, has been included, with modifications, in kernel 2.5.54 by Cristoph Hellwig.

Attached patch removes unnecessary include of i2c header files at few locations. With luck it still compiles. Should..

Quoted 7 lines
Quoted 4 lines

It seems that sysctl enumeration has moved out of sensors.h, but libsensors depends on this. While the list is long and boring, so is linux/sysctl.h. I believe we want it back.

agreed

Let me see if I can get sensors.h into the kernel along with changes below to adm1021.c and lm75.c. What do you think? I need to tweek sensors.h. OK?
Albert

include/linux/sensors.h 2003-01-07 21:45:33.000000000 -0500 renamed from kernel/include/sensors.h 2002-11-15 21:02:44.000000000 -0500 +6 -3
@@ -18,8 +18,11 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#ifndef SENSORS_NSENSORS_H
-#define SENSORS_NSENSORS_H
+#ifndef _LINUX_SENSORS_H
+#define _LINUX_SENSORS_H
+
+#define LM_DATE "20021208"
+#define LM_VERSION "2.7.0"
 
 #include <linux/i2c-proc.h>
 
@@ -690,4 +693,4 @@
 #define BMC_SYSCTL_ALARMS 5000
 
 
-#endif                         /* def SENSORS_SENSORS_H */
+#endif /* _LINUX_SENSORS_H */
drivers/i2c/chips/adm1021.c 2003-01-07 22:28:38.000000000 -0500 renamed from drivers/i2c/chips/adm1021.c.orig 2003-01-07 22:09:46.000000000 -0500 +1 -13
@@ -23,21 +23,9 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
-#include <linux/i2c-proc.h>
+#include <linux/sensors.h>
 #include <linux/init.h>
 
-/* Registers */
-#define ADM1021_SYSCTL_TEMP            1200
-#define ADM1021_SYSCTL_REMOTE_TEMP     1201
-#define ADM1021_SYSCTL_DIE_CODE                1202
-#define ADM1021_SYSCTL_ALARMS          1203
-
-#define ADM1021_ALARM_TEMP_HIGH                0x40
-#define ADM1021_ALARM_TEMP_LOW         0x20
-#define ADM1021_ALARM_RTEMP_HIGH       0x10
-#define ADM1021_ALARM_RTEMP_LOW                0x08
-#define ADM1021_ALARM_RTEMP_NA         0x04
-
 /* Addresses to scan */
 static unsigned short normal_i2c[] = { SENSORS_I2C_END };
 static unsigned short normal_i2c_range[] = { 0x18, 0x1a, 0x29, 0x2b,
drivers/i2c/chips/lm75.c 2003-01-07 22:28:52.000000000 -0500 renamed from drivers/i2c/chips/lm75.c.orig 2003-01-07 22:04:47.000000000 -0500 +1 -3
@@ -22,12 +22,10 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
-#include <linux/i2c-proc.h>
+#include <linux/sensors.h>
 #include <linux/init.h>
 
 
-#define LM75_SYSCTL_TEMP 1200  /* Degrees Celcius * 10 */
-
 /* Addresses to scan */
 static unsigned short normal_i2c[] = { SENSORS_I2C_END };
 static unsigned short normal_i2c_range[] = { 0x48, 0x4f, SENSORS_I2C_END };
Signature · 2 lines
Albert Cranford Deerfield Beach FL USA
[email protected]
#8 lore raw
In reply to Kyosti Malkki

Hmm. No feedback and kernel 2.5.55 is already out. Guess the current state if satisfactory.

Quoted 92 lines · Albert Cranford
Quoted 13 lines · Mark Studebaker
Quoted 11 lines · Kyosti Malkki
Quoted 3 lines · Mark Studebaker

The patch for i2c-amd756, i2c-amd8111, adm1021, and lm75, submitted by Pavel Machek, has been included, with modifications, in kernel 2.5.54 by Cristoph Hellwig.

Attached patch removes unnecessary include of i2c header files at few locations. With luck it still compiles. Should..

Quoted 7 lines
Quoted 4 lines

It seems that sysctl enumeration has moved out of sensors.h, but libsensors depends on this. While the list is long and boring, so is linux/sysctl.h. I believe we want it back.

agreed

Let me see if I can get sensors.h into the kernel along with changes below to adm1021.c and lm75.c. What do you think? I need to tweek sensors.h. OK?
Albert

include/linux/sensors.h 2003-01-07 21:45:33.000000000 -0500 renamed from kernel/include/sensors.h 2002-11-15 21:02:44.000000000 -0500 +6 -3
@@ -18,8 +18,11 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#ifndef SENSORS_NSENSORS_H
-#define SENSORS_NSENSORS_H
+#ifndef _LINUX_SENSORS_H
+#define _LINUX_SENSORS_H
+
+#define LM_DATE "20021208"
+#define LM_VERSION "2.7.0"
 
 #include <linux/i2c-proc.h>
 
@@ -690,4 +693,4 @@
 #define BMC_SYSCTL_ALARMS 5000
 
 
-#endif                         /* def SENSORS_SENSORS_H */
+#endif /* _LINUX_SENSORS_H */
drivers/i2c/chips/adm1021.c 2003-01-07 22:28:38.000000000 -0500 renamed from drivers/i2c/chips/adm1021.c.orig 2003-01-07 22:09:46.000000000 -0500 +1 -13
@@ -23,21 +23,9 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
-#include <linux/i2c-proc.h>
+#include <linux/sensors.h>
 #include <linux/init.h>
 
-/* Registers */
-#define ADM1021_SYSCTL_TEMP            1200
-#define ADM1021_SYSCTL_REMOTE_TEMP     1201
-#define ADM1021_SYSCTL_DIE_CODE                1202
-#define ADM1021_SYSCTL_ALARMS          1203
-
-#define ADM1021_ALARM_TEMP_HIGH                0x40
-#define ADM1021_ALARM_TEMP_LOW         0x20
-#define ADM1021_ALARM_RTEMP_HIGH       0x10
-#define ADM1021_ALARM_RTEMP_LOW                0x08
-#define ADM1021_ALARM_RTEMP_NA         0x04
-
 /* Addresses to scan */
 static unsigned short normal_i2c[] = { SENSORS_I2C_END };
 static unsigned short normal_i2c_range[] = { 0x18, 0x1a, 0x29, 0x2b,
drivers/i2c/chips/lm75.c 2003-01-07 22:28:52.000000000 -0500 renamed from drivers/i2c/chips/lm75.c.orig 2003-01-07 22:04:47.000000000 -0500 +1 -4
@@ -22,12 +22,10 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
-#include <linux/i2c-proc.h>
+#include <linux/sensors.h>
 #include <linux/init.h>
 
 
-#define LM75_SYSCTL_TEMP 1200  /* Degrees Celcius * 10 */
-
 /* Addresses to scan */
 static unsigned short normal_i2c[] = { SENSORS_I2C_END };
 static unsigned short normal_i2c_range[] = { 0x48, 0x4f, SENSORS_I2C_END };
--

Albert Cranford Deerfield Beach FL USA
[email protected]

Signature · 2 lines
Albert Cranford Deerfield Beach FL USA
[email protected]
#9 lore raw
In reply to Kyosti Malkki

looks good to me

Quoted 91 lines · Albert Cranford
Quoted 14 lines · Mark Studebaker
Quoted 12 lines · Kyosti Malkki
Quoted 3 lines · Mark Studebaker

The patch for i2c-amd756, i2c-amd8111, adm1021, and lm75, submitted by Pavel Machek, has been included, with modifications, in kernel 2.5.54 by Cristoph Hellwig.

Attached patch removes unnecessary include of i2c header files at few locations. With luck it still compiles. Should..

Quoted 7 lines
Quoted 4 lines

It seems that sysctl enumeration has moved out of sensors.h, but libsensors depends on this. While the list is long and boring, so is linux/sysctl.h. I believe we want it back.

agreed

Let me see if I can get sensors.h into the kernel along with changes below to adm1021.c and lm75.c. What do you think? I need to tweek sensors.h. OK?
Albert

include/linux/sensors.h 2003-01-07 21:45:33.000000000 -0500 renamed from kernel/include/sensors.h 2002-11-15 21:02:44.000000000 -0500 +6 -3
@@ -18,8 +18,11 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#ifndef SENSORS_NSENSORS_H
-#define SENSORS_NSENSORS_H
+#ifndef _LINUX_SENSORS_H
+#define _LINUX_SENSORS_H
+
+#define LM_DATE "20021208"
+#define LM_VERSION "2.7.0"
 
 #include <linux/i2c-proc.h>
 
@@ -690,4 +693,4 @@
 #define BMC_SYSCTL_ALARMS 5000
 
 
-#endif                         /* def SENSORS_SENSORS_H */
+#endif /* _LINUX_SENSORS_H */
drivers/i2c/chips/adm1021.c 2003-01-07 22:28:38.000000000 -0500 renamed from drivers/i2c/chips/adm1021.c.orig 2003-01-07 22:09:46.000000000 -0500 +1 -13
@@ -23,21 +23,9 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
-#include <linux/i2c-proc.h>
+#include <linux/sensors.h>
 #include <linux/init.h>
 
-/* Registers */
-#define ADM1021_SYSCTL_TEMP            1200
-#define ADM1021_SYSCTL_REMOTE_TEMP     1201
-#define ADM1021_SYSCTL_DIE_CODE                1202
-#define ADM1021_SYSCTL_ALARMS          1203
-
-#define ADM1021_ALARM_TEMP_HIGH                0x40
-#define ADM1021_ALARM_TEMP_LOW         0x20
-#define ADM1021_ALARM_RTEMP_HIGH       0x10
-#define ADM1021_ALARM_RTEMP_LOW                0x08
-#define ADM1021_ALARM_RTEMP_NA         0x04
-
 /* Addresses to scan */
 static unsigned short normal_i2c[] = { SENSORS_I2C_END };
 static unsigned short normal_i2c_range[] = { 0x18, 0x1a, 0x29, 0x2b,
drivers/i2c/chips/lm75.c 2003-01-07 22:28:52.000000000 -0500 renamed from drivers/i2c/chips/lm75.c.orig 2003-01-07 22:04:47.000000000 -0500 +1 -3
@@ -22,12 +22,10 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
-#include <linux/i2c-proc.h>
+#include <linux/sensors.h>
 #include <linux/init.h>
 
 
-#define LM75_SYSCTL_TEMP 1200  /* Degrees Celcius * 10 */
-
 /* Addresses to scan */
 static unsigned short normal_i2c[] = { SENSORS_I2C_END };
 static unsigned short normal_i2c_range[] = { 0x48, 0x4f, SENSORS_I2C_END };