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;
}
Esempio n. 2
0
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;
}
Esempio n. 3
0
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);
}