1
0
Fork 0

LF-375 sensor: fxls8471: set output data rate when device init

The default output data rate was only assigned to variable. It was not
configured for register when sensor init. This causes output data rate
is 800hz and it will increase cpu loading.
Config output data rate as 12.5hz to register when sensor init now.

Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Clark Wang 2019-12-06 14:53:32 +08:00
parent f6cb75f3d9
commit ad05c9f2eb
1 changed files with 2 additions and 0 deletions

View File

@ -538,6 +538,8 @@ int fxls8471_driver_init(struct fxls8471_data *pdata)
}
}
fxls8471_device_init(pdata);
fxls8471_set_delay(pdata, atomic_read(&pdata->delay));
printk("fxls8471 device driver probe successfully\n");
return 0;
err_register_irq: