My first kernel module:Acer 1825 gyro sensor joystick

From this thread on ubuntuforums.org I got a link http://pof.eslack.org/blog/2008/06/05/gsensor-joy-htc-shift-g-sensor-joystick-linux-kernel-module/ of a blog where the author presents his kernel module for using the gyro sensor from the HTC Shift (which is similar to the gyro sensor from the Acer 1825) as a joystick. This site is although the base for my presented scripts and applications for auto rotating the display of the Acer 1825. The problem is, that the presented module does not work on a current kernel, because the architecture of the i2c-bus driver changed in linux kernel  2.6. read more