From patchwork Mon Jan 8 06:04:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 123683 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2333724qgn; Sun, 7 Jan 2018 22:05:24 -0800 (PST) X-Google-Smtp-Source: ACJfBotUE4STBGnO5EYSJmH0A5ZluF8AQF8BNXZ/Zc+LTDZHJgyGw70qq68OG3aEPW0I0fYnI6Ct X-Received: by 10.98.228.6 with SMTP id r6mr9831459pfh.66.1515391524722; Sun, 07 Jan 2018 22:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515391524; cv=none; d=google.com; s=arc-20160816; b=UxvPgAIRPxOx8PtgfPsrIVI3ECxYMyQW3IheBxzv3k+/hnV3EnsmVUB+OUHXXNDppc ITcxP9YZXYdDnoTEKNbeZ95nY2Qp4K0Hc/QpHOFtkjzl6d8aldpPUvw7lL6hxjTg1WYi 585U7JU3wqyQIqjE4EyS0wVmO0f03YnSfxxF30sztyVVzuTy6Tosu9EZuYLwdNmZKL22 1WOhlR1KYlUMuKIEIYKT0Mcf4f0nFavEZ6jbU7z5AM9E0/OZjDfJquDdG6RC12q35KAT ZIXMDdyrUASOja1Mp/Mqe5sOA7pnXXDkjLueGIvmu1eiD1f3/LIlv9umRlAfsMZtKkyk 4+Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=qLu+q94zAulmlRlF9N3R2M6HG3ro4HIWGhH8EoUF0Ic=; b=g/5wXVLgY0WiGf9ErflnVf7RtrsB3CujuvHWYjXbUmAXmNI4BaWYNCyki5CulzWI5X whDgO3xROB2Idbn+nCri7pN+Re9taZYXvD5r4z5m117LOZMjEpRN4uZTir6tFS7CXi5a hWZrh9NBvTs5bCpWm1gV94CNQIEnqbD9vo+rNm1xp9Fo53+Vu/9tq/jhQPZg1vkSt7vi BR17pkT3FhhlPRIbPGUA7w5vt2Wp01FGTUfgJuo1MsxPQ30W+retxgGzSXHwJjxr4l8a C6OFdsvW/eKrlv79bO3bmH4T3uTM40wDD7QlrUOYuAYeTjVlnNO4zkm21UDLvj/Mr/fP BqFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CxYj6W9I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 97si8135106pla.333.2018.01.07.22.05.24; Sun, 07 Jan 2018 22:05:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CxYj6W9I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755524AbeAHGFW (ORCPT + 28 others); Mon, 8 Jan 2018 01:05:22 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:46731 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755407AbeAHGFV (ORCPT ); Mon, 8 Jan 2018 01:05:21 -0500 Received: by mail-pg0-f67.google.com with SMTP id r2so4908766pgq.13 for ; Sun, 07 Jan 2018 22:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=qLu+q94zAulmlRlF9N3R2M6HG3ro4HIWGhH8EoUF0Ic=; b=CxYj6W9IFkk9Y+ScvcQF8e/aceno95bt4gYkF5MTUQovVoFZpSwPxH/SIrpL9b1g8y qiXK70G7iMJm0CPvt9uHAgxuu/XjCFsw5VDtXTuHliY+F6lEDyuKWW+ggRHsUS798ZaC hPkfulS7Yqthq3lJwmq97nsobur9LS0TaNc30= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qLu+q94zAulmlRlF9N3R2M6HG3ro4HIWGhH8EoUF0Ic=; b=TvYP/mCkhSlRVvLknb6/3P5vCC6rilfAUPiyaY/fe7aZmxvyW1DtMzQvPajoyxBNPy +AYeRidXo3WJyqiSBffQ1AV0ooqt1pvXzCSS5rHF01fmB3AEQ/mafeLVgb/Uw2/C7EQs 1adacjuXUB/bE499y2VbCgZHik8zmrQma267uF2o/wtp0KsurYxJWr1gJ7rD+DX1Z3MI fKVicowVd9SLtPRcmzcSOA7On/PgWKc2ijRBZwJ7JPg+hlgxhNHaevbGlTsClWrrNoAL e70iXz6x+2WAs5WshslTd5e7Wrt7ixncCezs4VWeom91hLcgRH7Y/9Oh0bOfb6/b7cD5 1DfQ== X-Gm-Message-State: AKGB3mJ6sOpd/r7wkOJO9MOd21Fn5TsaPLBQ7NDq1O1WTDXUmOKXcVkd IIlotA8HufFdRMJVi1TsdjI/FQ== X-Received: by 10.101.64.6 with SMTP id f6mr8508597pgp.58.1515391520463; Sun, 07 Jan 2018 22:05:20 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id q5sm20468615pgn.39.2018.01.07.22.05.17 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 07 Jan 2018 22:05:19 -0800 (PST) From: Baolin Wang To: a.zummo@towertech.it, alexandre.belloni@free-electrons.com Cc: arnd@arndb.de, broonie@kernel.org, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, baolin.wang@linaro.org Subject: [PATCH 1/3] rtc: Use time64_t to save range_max of RTC Date: Mon, 8 Jan 2018 14:04:48 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need use rtc->range_max to valid if the time values are valid, and the time values are saved by time64_t type. So change the rtc->range_max to time64_t type for comparison correctly. Signed-off-by: Baolin Wang --- include/linux/rtc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.7.9.5 diff --git a/include/linux/rtc.h b/include/linux/rtc.h index 69e358c..4ac60af 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h @@ -153,7 +153,7 @@ struct rtc_device { struct bin_attribute *nvram; time64_t range_min; - timeu64_t range_max; + time64_t range_max; #ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL struct work_struct uie_task;