guerrerolor / android-x86

Automatically exported from code.google.com/p/android-x86
2 stars 1 forks source link

ACER W500 ICS-BRAZOS accelerometer doesnt work (linux driver found) #668

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
cant we use this driver with ics-brazos?
https://groups.google.com/forum/#!topic/fa.linux.kernel/g32n0JTBQlQ/discussion

Original issue reported on code.google.com by yildirim...@gmail.com on 1 Feb 2012 at 12:02

GoogleCodeExporter commented 9 years ago
I am not pretending to kow much on how to use this info, I bairly us Linux.
I did a search based on the link, looks like Bosch has a driver for Linux.

 MODULE_AUTHOR("Albert Zhang <xu.zhang@bosch-sensortec.com>"); 
 MODULE_DESCRIPTION("BMA150 driver"); 
 MODULE_LICENSE("GPL"); 
- 
-module_init(BMA150_init); 
-module_exit(BMA150_exit); 
diff --git a/drivers/input/misc/cma3000_d0x_i2c.c 
b/drivers/input/misc/cma3000_d0x_i2c.c 
index d100cc5..fe9b85f 100644 
--- a/drivers/input/misc/cma3000_d0x_i2c.c 
+++ b/drivers/input/misc/cma3000_d0x_i2c.c 
@@ -125,18 +125,7 @@ static struct i2c_driver cma3000_i2c_driver = { 
         }, 
 }; 

-static int __init cma3000_i2c_init(void) 
-{ 
-        return i2c_add_driver(&cma3000_i2c_driver); 
-} 
- 
-static void __exit cma3000_i2c_exit(void) 
-{ 
-        i2c_del_driver(&cma3000_i2c_driver); 
-} 
- 
-module_init(cma3000_i2c_init); 
-module_exit(cma3000_i2c_exit); 
+module_i2c_driver(cma3000_i2c_driver); 

An another search I found a link to the drivers, as the above I think is more 
loading them in that version of Linux.
http://lxr.free-electrons.com/source/drivers/input/misc/?a=arm

Hope this helps

Original comment by mobarton...@gmail.com on 10 Feb 2012 at 6:32