static int __init gyro_ewtsa_init(void) { struct sensor_operate *ops = gyro_get_ops(); int result = 0; int type = ops->type; result = sensor_register_slave(type, NULL, NULL, gyro_get_ops); return result; }
static int __init gyro_l3g4200d_init(void) { struct sensor_operate *ops = gyro_get_ops(); int result = 0; int type = ops->type; result = sensor_register_slave(type, NULL, NULL, gyro_get_ops); DBG("%s\n",__func__); return result; }
static void __exit gyro_l3g4200d_exit(void) { struct sensor_operate *ops = gyro_get_ops(); int type = ops->type; sensor_unregister_slave(type, NULL, NULL, gyro_get_ops); }