[PATCH 0/3] Provide new API to get the current time resolution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch series introduces a new function
u32 ktime_get_resolution_ns(void)
and shows how this would be used in a driver that greatly benefits from
it.

Since the iio subsystem has it's own wrapper function iio_get_time_ns()
for timestamps a similiar wrapper iio_get_time_resolution_ns() is
introduce in Patch 2 to keep the API consistent.

Patch 3 updates the example driver. Patch 3 depends on other fixes
currently only iio.git. If Patch 3 can't be picked up now then it will
be resent with more cleanup patches to dht11.c later - the main goal
for now is, to get the new code for timekeeping reviewed and merged.

Harald Geyer (3):
  timekeeping: Provide new API to get the current time resolution
  iio: Provide new API to get the current resolution of timestamps
  iio: dht11: Use new function iio_get_time_resolution_ns()

 drivers/iio/humidity/dht11.c |   33 +++++++++++++++++----------------
 include/linux/iio/iio.h      |    5 +++++
 include/linux/timekeeping.h  |    1 +
 kernel/time/timekeeping.c    |   18 ++++++++++++++++++
 4 files changed, 41 insertions(+), 16 deletions(-)

-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux