Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C06FEC33CB1 for ; Sun, 19 Jan 2020 14:02:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 93E04206D7 for ; Sun, 19 Jan 2020 14:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579442542; bh=jl+KxTcJvQGYZi2uoFuHOQ8YBvyy31RgtLdp7htzroE=; h=Subject:To:From:Date:List-ID:From; b=wZljG2OapN+ssDcET3azQsysJaxriFmJU/Zcqg52IP/D18HWdhr1P4pzJNxLny1hs GOdr7r7NymVI03I7q88BMiY8JbocBc4t/9oV+S9AMrjKIgCcvw8JyO1NM4bm1ShWxy mcjs4x17atanVr8I5EiRmq6JG9sKVWg4LsZdGhng= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726867AbgASOCW (ORCPT ); Sun, 19 Jan 2020 09:02:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:40830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726778AbgASOCW (ORCPT ); Sun, 19 Jan 2020 09:02:22 -0500 Received: from localhost (unknown [84.241.197.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D4E5320684; Sun, 19 Jan 2020 14:02:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579442541; bh=jl+KxTcJvQGYZi2uoFuHOQ8YBvyy31RgtLdp7htzroE=; h=Subject:To:From:Date:From; b=M1sPGHNA/pldJusLIMkATuGNZD5Fi7XfCbHlD5HKlnHZN60wHOSvZZT5bLLBOhfBx SX2003utMLuUQAAuvlAZzlojivYV+vK6LfQASPvR2c+rnvowIMm7OiRRlws3hRMOsT 0BA+z6bO0oNKrseD69/+tFLAK0QL8C//5lYUR5Vg= Subject: patch "iio: adc: stm32-dfsdm: fix single conversion" added to staging-testing To: olivier.moysan@st.com, Jonathan.Cameron@huawei.com, Stable@vger.kernel.org, fabrice.gasnier@st.com From: Date: Sun, 19 Jan 2020 15:01:44 +0100 Message-ID: <157944250412318@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org This is a note to let you know that I've just added the patch titled iio: adc: stm32-dfsdm: fix single conversion to my staging git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git in the staging-testing branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will be merged to the staging-next branch sometime soon, after it passes testing, and the merge window is open. If you have any questions about this process, please let me know. From dc26935fb60e8da8d59655dd2ec0de47b20d7d8f Mon Sep 17 00:00:00 2001 From: Olivier Moysan Date: Wed, 27 Nov 2019 14:07:29 +0100 Subject: iio: adc: stm32-dfsdm: fix single conversion Apply data formatting to single conversion, as this is already done in continuous and trigger modes. Fixes: 102afde62937 ("iio: adc: stm32-dfsdm: manage data resolution in trigger mode") Signed-off-by: Olivier Moysan Cc: Acked-by: Fabrice Gasnier Signed-off-by: Jonathan Cameron --- drivers/iio/adc/stm32-dfsdm-adc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c index 74a2211bdff4..1c9b05d11dc5 100644 --- a/drivers/iio/adc/stm32-dfsdm-adc.c +++ b/drivers/iio/adc/stm32-dfsdm-adc.c @@ -1204,6 +1204,8 @@ static int stm32_dfsdm_single_conv(struct iio_dev *indio_dev, stm32_dfsdm_stop_conv(adc); + stm32_dfsdm_process_data(adc, res); + stop_dfsdm: stm32_dfsdm_stop_dfsdm(adc->dfsdm); -- 2.25.0