/** * @brief one-time device driver exit function. * If the driver is built as a kernel module, this function will be * called when the module is removed from the kernel. * * @param mlsl_handle * the handle to the serial channel the device is connected to. * @param slave * a pointer to the slave descriptor data structure. * @param pdata * a pointer to the slave platform data. * * @return ML_SUCCESS if successful or a non-zero error code. */ static int bma250_exit(void *mlsl_handle, struct ext_slave_descr *slave, struct ext_slave_platform_data *pdata) { MLOSFree(pdata->private_data); return ML_SUCCESS; }
static int kxtf9_exit(void *mlsl_handle, struct ext_slave_descr *slave, struct ext_slave_platform_data *pdata) { if (pdata->private_data) return MLOSFree(pdata->private_data); else return ML_SUCCESS; }
static int bma250_exit(void *mlsl_handle, struct ext_slave_descr *slave, struct ext_slave_platform_data *pdata) { printk(KERN_INFO "[GSNR]Gsensor disable\n"); if (pdata->private_data) return MLOSFree(pdata->private_data); else return ML_SUCCESS; }