All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Provide new API to get the current time resolution
@ 2015-03-02 20:56 Harald Geyer
  2015-03-02 20:56 ` [PATCH 1/3] timekeeping: " Harald Geyer
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Harald Geyer @ 2015-03-02 20:56 UTC (permalink / raw)
  To: Jonathan Cameron, John Stultz, Thomas Gleixner
  Cc: linux-iio, Richard Weinberger, Harald Geyer

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-07 19:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-02 20:56 [PATCH 0/3] Provide new API to get the current time resolution Harald Geyer
2015-03-02 20:56 ` [PATCH 1/3] timekeeping: " Harald Geyer
2015-03-02 21:18   ` John Stultz
2015-03-03 11:17     ` Harald Geyer
2015-03-02 20:56 ` [PATCH 2/3] iio: Provide new API to get the current resolution of timestamps Harald Geyer
2015-03-07 19:05   ` Jonathan Cameron
2015-03-02 20:56 ` [PATCH 3/3] iio: dht11: Use new function iio_get_time_resolution_ns() Harald Geyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.