From patchwork Thu Jan 30 18:38:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 232299 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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 0D768C33CB3 for ; Thu, 30 Jan 2020 18:54:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D82BD20CC7 for ; Thu, 30 Jan 2020 18:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580410460; bh=IEY2DK0mVd3QRoS/LYnosAPqfWr7Mx1laUopAzlAE6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=EmW6+W+4VusnG/2IMtxY4TWbiiCdbq/RjEiZqd/iHMPsMjrwlM3SqXlfgfai4CAsg 1NqUtzhQRl75N9zCtvlYVsE8hLAkiYx01X3d8ARk1GXQhdRcUlOUWree/LTXB1dbi/ jvz5sUbiijazhY8IYJ8bY/ZOeD9p3AcoOx4NSIrQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728011AbgA3SyQ (ORCPT ); Thu, 30 Jan 2020 13:54:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:48012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729951AbgA3Sk0 (ORCPT ); Thu, 30 Jan 2020 13:40:26 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 0F0032082E; Thu, 30 Jan 2020 18:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580409626; bh=IEY2DK0mVd3QRoS/LYnosAPqfWr7Mx1laUopAzlAE6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HAouV2QIW3DkCf3j1WW/AvOrbke1CbITAi5fuGUvVwTWRo/Jnn72DSjRUcNqUqC89 MFkqC0YdYryJgpfH/xZsHHzGQ33L6cd5loIRuCa296iSeXvnD8s608dNLcGNWd74Bd /2sVVb+7n/FLWcWpYOBXC8hFZxqFnPwN8YhTvWR4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Olivier Moysan , Stable@vger.kernel.org, Fabrice Gasnier , Jonathan Cameron Subject: [PATCH 5.5 25/56] iio: adc: stm32-dfsdm: fix single conversion Date: Thu, 30 Jan 2020 19:38:42 +0100 Message-Id: <20200130183613.744768597@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200130183608.849023566@linuxfoundation.org> References: <20200130183608.849023566@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Olivier Moysan commit dc26935fb60e8da8d59655dd2ec0de47b20d7d8f upstream. 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 Signed-off-by: Greg Kroah-Hartman --- drivers/iio/adc/stm32-dfsdm-adc.c | 2 ++ 1 file changed, 2 insertions(+) --- 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(struc stm32_dfsdm_stop_conv(adc); + stm32_dfsdm_process_data(adc, res); + stop_dfsdm: stm32_dfsdm_stop_dfsdm(adc->dfsdm);