From patchwork Mon Feb 26 08:33:56 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: 129611 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3365364lja; Mon, 26 Feb 2018 00:35:29 -0800 (PST) X-Google-Smtp-Source: AG47ELu8OW3WhissARJCd1QYaJehXA9fZHbJ66YJstMk4vwMEoK1vaXdYbMu6lQZVPXlNrmGhi+h X-Received: by 2002:a17:902:4001:: with SMTP id b1-v6mr1553911pld.28.1519634129692; Mon, 26 Feb 2018 00:35:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519634129; cv=none; d=google.com; s=arc-20160816; b=ZPfQNnPl/lPlX0kDF0rjrztlqN5zyFABtizWa1k979IlqgXB9bNFVHE7Q06MNqSFQw IWfnb3O26aYzEJFbHaEFZ+r9xNHffpTvOPtrEl33hY8N96rj4W0oNPPYk5wouFatHW7U +CvvJZ1+5xoX92QYd0EAFSqCrhqVxpohFpAYipJ6kOjQOBOkiSnNQDcaWifxtrVUTssf mcLNXTUo4d/oDhpX4NpAula67fxFL0oWapTaFVh0iYmroGMnMOPeWBMea/6uZffLl0gU J5OQHhjwBk6V3Vaa6NFGjE1NWSVIIYqjRxImrn23H2J6mVltV+xi8n3SWyLRYdIrS3ZO 40ig== 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=suHtErjr+ylroZwu3YfJDocdRxAyU8MOsGzy5vbOC3M=; b=s0AnxZF+mWBgzkd0iwMcNArRKg7fV6bZzOW6m4BIzfCaJ2olN+a756GarwiqzhjRFL CJW1oC7lcrtM7nUlz0Gv0LpjhcHwpcEtoLVbdDdktyJFKTiXsDuSkP4qsRsyE42yNckY NWgtyMl3mbQcxQeJn+RBicyxWb6uAK5/qvQPNDVlPj7biIz9mxKIvH1jiyNK82UijvLH HXezxAMKBudCCUcvIfWDhNgpufpdpSo4cEfc0XPpqMl6gz3RGTwHDrrF/GI/9NRyNeQK qwqp6ATlgdI9vWRsgqDk+gKjqsL5M1mge1WhsGTLC+N9vniSnJfdpwQQo+Cs9ZpPckKt 3Kgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EwtmKHo4; 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 b2si296930pgc.281.2018.02.26.00.35.29; Mon, 26 Feb 2018 00:35:29 -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=EwtmKHo4; 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 S1752261AbeBZIfZ (ORCPT + 28 others); Mon, 26 Feb 2018 03:35:25 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:42240 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751570AbeBZIed (ORCPT ); Mon, 26 Feb 2018 03:34:33 -0500 Received: by mail-pf0-f195.google.com with SMTP id a16so404340pfn.9 for ; Mon, 26 Feb 2018 00:34:33 -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=suHtErjr+ylroZwu3YfJDocdRxAyU8MOsGzy5vbOC3M=; b=EwtmKHo4vOJ6fpthUEKSsKwKlFHQx+5CkxapBZJXPa1wIZmUyfZkpY71F5DAJI0HoR xa2igzSPurIPWUuud0znsPwZINWbdYkzwjBluVrs2DJ6K3pD3OrdQa+MIkgB8QlAVGMU PDymEdzR6mUju5IaHHVuaWAjqVJujVqglZztY= 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=suHtErjr+ylroZwu3YfJDocdRxAyU8MOsGzy5vbOC3M=; b=iLCwQnhihU08yyrcAS+ET2QSFEaa3C9+de1BoDM2WdfhaAzlaNH3mWSu9ZAWth54+v WXbL1Wiqo/TEL3J5c9K1sgBGcI5AXZG0ol7N7J6s3e1lXMEowFF2XioXlY3SHcEPhF9s NOsBJ0pehCFhTWo3M1h2Vt71LaN8iGHD1WNVO6pZwXBDFZU3u+z36MZtwjPHyFKTu/6C btlrexnAE3QkSDhpIZSXzhDEWdQll/6IoCNbLV4dJ0Y/pxFVhTSvPT2FF9V92eLZRkSB Z1JNn0iJmb8wzpXRc/ZGdnIFBMbhONre+zOGpy7SW1dgf7lta5/R6PQ6V6oAPh+JXzJp vTDA== X-Gm-Message-State: APf1xPDAA0YNiPxZQJRkpC213u0NiYPuJagAfoZyEYZ5g+jw/ijnMAFN eP71wWevIUjioEuaYZot1W63cfmZNYQ= X-Received: by 10.99.42.72 with SMTP id q69mr217191pgq.168.1519634073086; Mon, 26 Feb 2018 00:34:33 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id e83sm17734791pfk.148.2018.02.26.00.34.30 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Feb 2018 00:34:32 -0800 (PST) From: Baolin Wang To: a.zummo@towertech.it, alexandre.belloni@bootlin.com Cc: arnd@arndb.de, broonie@kernel.org, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, baolin.wang@linaro.org, alexandre.belloni@free-electrons.com Subject: [RESEND PATCH 1/3] rtc: Use time64_t to save range_max of RTC Date: Mon, 26 Feb 2018 16:33:56 +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 bdfc0c4..8560282 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h @@ -152,7 +152,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;