From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753509AbbDGLSg (ORCPT ); Tue, 7 Apr 2015 07:18:36 -0400 Received: from h1.radempa.de ([176.9.142.194]:56278 "EHLO mail.cosmopool.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752381AbbDGLSd (ORCPT ); Tue, 7 Apr 2015 07:18:33 -0400 X-Greylist: delayed 303 seconds by postgrey-1.27 at vger.kernel.org; Tue, 07 Apr 2015 07:18:32 EDT From: Harald Geyer To: Jonathan Cameron , John Stultz , Thomas Gleixner Cc: Richard Weinberger , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Harald Geyer Subject: [PATCHv2 0/2] Provide new API to get the current time resolution Date: Tue, 7 Apr 2015 11:12:34 +0000 Message-Id: <1428405156-6761-1-git-send-email-harald@ccbib.org> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this patch series introduces a new kernel internal API to get the current time resolution. The first patch adds the implementation and the second patch updates an example driver to show the possible code simplification. If patches 1 and 2 can't go in via the same tree, I'll resend patch 2 with more cleanup patches to dth11.c later -- the main goal for now is, to get the new code for timekeeping reviewed and merged. changes since V1: * dropped patch for adding wrapper code to the iio framework * improved commit messages Harald Geyer (2): timekeeping: Provide new API to get the current time resolution iio: dht11: Use new function ktime_get_resolution_ns() drivers/iio/humidity/dht11.c | 42 ++++++++++++++++++++++-------------------- include/linux/timekeeping.h | 1 + kernel/time/timekeeping.c | 17 +++++++++++++++++ 3 files changed, 40 insertions(+), 20 deletions(-) -- 1.7.2.5