Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6376585ybe; Wed, 18 Sep 2019 02:25:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOoIkOnLzEGNkJwA3Lz8xdAEDIzBXccVwkrrlX+GHkUuN2pK2KIILMPNdZRSWtrRnDvDNS X-Received: by 2002:a50:eb4c:: with SMTP id z12mr9216920edp.155.1568798701228; Wed, 18 Sep 2019 02:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568798701; cv=none; d=google.com; s=arc-20160816; b=QbCmkeGQxDcM7f66IhMFc+uvUC3uTppmNzdiF5SifakgPr/rhC2gwfE95cxRo0qUz+ xpF13gEGbpu+/kXopF5MJPdY+AnUjl3NQs4IRtu1NSos8GWK2y7cYpGLC8Qut+rmo0Yb absahW8MaS5NmbGqMc8pJJjqE8Y+NOro4AMet2DeyBRzBXhwpf1PB39d8sryJxpigxvD J64lE3Db+yjeGdbkRpuFnc1uOIB1npwnma7lnB8PjnE6G2Rf/wCcZ08XxWtkhmreT6i5 bU/d27O6Ols9EXHTmknqdFTD/0HbPFiE8NR6H1OhSSc4MC8NTbS6kyyBS7+xlmE7V4MR oeUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PJG4R+fWj0sM0gBzRDWpk4Qq46V/CmHI+1H6OVyYxow=; b=jAZ10OEJx1ydNkLuqxbZSs3fAvArWBiq+HY040ysInvKdcf6f95FA9VZezB3b3uIFM WfDdGXDcWM+tNvW2GJ8ieF9AVUmWSEi9PbU36OY1XZKoeX+1D+gVKYcb21HRZCmHGCA4 ljzPDqfU8S0DXfB0TvDOOZSOBx+8hZzEwBY8hnyS24fj1VXczswH8qFRWoUnf9p4a6Ae 4Ck+MuhHBx7WWhldU50K6i1daX5NQEzAI/sJFaqoDESjzWzlYqWK+gdSSJFi8x/BE78g VKbaJavu8DgR10PahBcSAr+mF2ERiImFanQlcadBtrCBljP458qn3u6BtVVkwIkat/W6 sGSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LPLquoAA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j38si2926723ede.374.2019.09.18.02.24.37; Wed, 18 Sep 2019 02:25:01 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=LPLquoAA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729081AbfIRHxo (ORCPT + 99 others); Wed, 18 Sep 2019 03:53:44 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39026 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbfIRHxn (ORCPT ); Wed, 18 Sep 2019 03:53:43 -0400 Received: by mail-pl1-f195.google.com with SMTP id x6so1249382plv.6; Wed, 18 Sep 2019 00:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PJG4R+fWj0sM0gBzRDWpk4Qq46V/CmHI+1H6OVyYxow=; b=LPLquoAAfdRTAHtbCvmLo89FOddl3kLcmoKcvwkZ0Aw07CYrKMn+rFIQ2SMea735AQ AhnhBuxblGpnPuo+csACqsv4/PROmfKoa5EOp8kW373rASStMsZzdD+2vvLXcKZJcyxi 2ImXKEAbpcXEmkfMjE0o+4eZnp8Xd6U5kObCj+vhHZLUxNrHqO3Fb2vGNuc4KjPolu9a eNwCsdLN6k8bFLCyXjsqYRR6Fs0KdBq96+GkBgYg897380aPwILuaA9ey3/ifpesPQLU w68JEyzljbnOCXit4ZJLKveLJOqxOvOZIgwQR0ydrTc51rSAGBZehoceinBxXYmxAzwE T+Fw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=PJG4R+fWj0sM0gBzRDWpk4Qq46V/CmHI+1H6OVyYxow=; b=ZduD4i692kStDB8WozUCW/CZgMpkrEhojxXQgPgXpS4yCtO3n+KYX1HD7OC/B3Os8M s04ZHxF475Z2wqgMqwrG+mhNu1b/Y9FU39cSshN12CBCPNsiKPbsrcuhVj12E7b3IZEr tfUtJZ/csAxvUaelLOnWlgd7Hp+AUO0bV0o52DlQFCcJD9t2bPMBP9Z78i3C0455fHWe E/dFNQsLhXkLtU632NwQYLXswzEC52wrNzSIy/dS5IjlHh95ZeWcV9iXtS1KlmCSuCX/ rDe4nsJ14mVzVcJE3hlm0Xw5bB5wMc1ivBovJV3UGHG7O5tzsLIrYcxXtXblMoL9QRTV iWoQ== X-Gm-Message-State: APjAAAV9DFRA3VBxInBe9FHq5RpQPgyGhUY7MYq1wC6V/MRghX5mNMV9 prMaNPbZqlhpjs2YJsm2d2I= X-Received: by 2002:a17:902:8d87:: with SMTP id v7mr2716294plo.229.1568793222048; Wed, 18 Sep 2019 00:53:42 -0700 (PDT) Received: from localhost.localdomain ([2001:268:c147:d9df:f819:e399:825f:f2dc]) by smtp.gmail.com with ESMTPSA id h8sm5580715pfo.64.2019.09.18.00.53.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 00:53:41 -0700 (PDT) From: William Breathitt Gray To: jic23@jic23.retrosnub.co.uk Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, patrick.havelange@essensium.com, fabrice.gasnier@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, William Breathitt Gray Subject: [PATCH v2 6/7] counter: stm32-lptimer-cnt: Update count_read callback Date: Wed, 18 Sep 2019 16:52:47 +0900 Message-Id: X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The count_read callback passes unsigned long now. Cc: Fabrice Gasnier Signed-off-by: William Breathitt Gray --- drivers/counter/stm32-lptimer-cnt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/counter/stm32-lptimer-cnt.c b/drivers/counter/stm32-lptimer-cnt.c index bbc930a5962c..73bb773f5e6d 100644 --- a/drivers/counter/stm32-lptimer-cnt.c +++ b/drivers/counter/stm32-lptimer-cnt.c @@ -377,8 +377,7 @@ static enum counter_synapse_action stm32_lptim_cnt_synapse_actions[] = { }; static int stm32_lptim_cnt_read(struct counter_device *counter, - struct counter_count *count, - struct counter_count_read_value *val) + struct counter_count *count, unsigned long *val) { struct stm32_lptim_cnt *const priv = counter->priv; u32 cnt; @@ -388,7 +387,7 @@ static int stm32_lptim_cnt_read(struct counter_device *counter, if (ret) return ret; - counter_count_read_value_set(val, COUNTER_COUNT_POSITION, &cnt); + *val = cnt; return 0; } -- 2.23.0