static int __init light_cm3232_init(void) { struct sensor_operate *ops = light_get_ops(); int result = 0; int type = ops->type; result = sensor_register_slave(type, NULL, NULL, light_get_ops); return result; }
static int __init light_init(void) { struct sensor_operate *ops = light_get_ops(); int result = 0; int type = ops->type; result = sensor_register_slave(type, NULL, NULL, light_get_ops); printk("%s\n",__func__); return result; }
static void __exit light_cm3232_exit(void) { struct sensor_operate *ops = light_get_ops(); int type = ops->type; sensor_unregister_slave(type, NULL, NULL, light_get_ops); }