Re: [PATCHv2 1/2] timekeeping: Provide new API to get the current time resolution

2015-04-08 Thread Richard Weinberger
Am 08.04.2015 um 00:30 schrieb Richard Weinberger: > Am 07.04.2015 um 13:12 schrieb Harald Geyer: >> This patch series introduces a new function >> u32 ktime_get_resolution_ns(void) >> which allows to clean up some driver code. >> >> In particular the IIO subsystem has a function to provide timesta

Re: [PATCHv2 1/2] timekeeping: Provide new API to get the current time resolution

2015-04-07 Thread Richard Weinberger
Am 07.04.2015 um 13:12 schrieb Harald Geyer: > This patch series introduces a new function > u32 ktime_get_resolution_ns(void) > which allows to clean up some driver code. > > In particular the IIO subsystem has a function to provide timestamps for > events but no means to get their resolution. So

[PATCHv2 1/2] timekeeping: Provide new API to get the current time resolution

2015-04-07 Thread Harald Geyer
This patch series introduces a new function u32 ktime_get_resolution_ns(void) which allows to clean up some driver code. In particular the IIO subsystem has a function to provide timestamps for events but no means to get their resolution. So currently the dht11 driver tries to guess the resolution