Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp31201pxb; Fri, 15 Jan 2021 05:09:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaeVFT5fnM+6vxBNDztRC2SMkdAK/j24XADLN2nqBDqyJDLtehL9b3lzkEjVkyZZruduZR X-Received: by 2002:a17:906:a008:: with SMTP id p8mr8803787ejy.117.1610716151128; Fri, 15 Jan 2021 05:09:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610716151; cv=none; d=google.com; s=arc-20160816; b=ObuT1C+cHYmC/I1eQE9Rstik7OCmTXhO9+DnpJgV0dYFIn3QAEKKVxbDog4698uEYw Zg/OTBeoFDeuqy6nhVU8UU+3wsE2AwLDhfDDLAI27/p8VgrMaObKv/3aoAkHhDBnFyHu VrLGyOT7R9amroK6a5lMJyXcYgNPRzLuH4THv2KKYivumvu2xOlntd2ZTBmYDQjKabvY opyKH4TVakpKP5mHvrr2jxt9ZcfhHpO/b4f1rFvNezOrfSLHbSzZmIqK8mK7qR0Lp6w9 1cIY7fRxzxaLS61o+6xRnTqqiMOwI3r/saH+LQxt9hFaSmd3agjXGLPQynl8k05/Lvmo qe3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kz42/ZuW8tScRhIXeHhqtZbrXizjmboJxhlIAkk8i7Q=; b=Wy8yoQbvT+pzJK6XvqB05u9ZzCykebSDigALHX1G4QQR75/OCyT3U/iJprS1bgFNQA ebGd4QkCwvNmENXW7Zo0fMzofdiUazt9GvofSR9cwdvDKVbpgUco7PpkSEWP29jaoI63 PM8Xsk8BNvKcH4O6Brgk1ISzoDBewctQKh3L+OpVFBofgVo0d6UT0I8giuNnuv2HIItd 4jT7/1t5GQQiLBlKWA0jryDQtQS0TKtxL9bnuo8rdagMAks3Tkgfv0Vh3Nzp9b3dQZIN Tvl5P0DI6yksde0KmcT3P2y8SyLrUT+kr+5aPn/iD75NLvMdSwXQ0eKCqh+2p6HzH90h Lb9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=07ZESMtF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si1782618edm.151.2021.01.15.05.08.46; Fri, 15 Jan 2021 05:09:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=07ZESMtF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388519AbhAONFn (ORCPT + 99 others); Fri, 15 Jan 2021 08:05:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:36296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732647AbhAOMba (ORCPT ); Fri, 15 Jan 2021 07:31:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 45B1723370; Fri, 15 Jan 2021 12:31:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610713863; bh=nuIHiwNqJXh2xY9skYdyFQFpAYUgosbDWknWX8Xop+Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=07ZESMtFalBz/1TyooNfdSwG3idb4XlTz4FDplTKcmBd7d1ORtWjY6LireNxcjwwR IXiRF0+O8SAeHLsykoFsZmGClC2DTb7S5aGMxRK8mKBBJKlbLkTrIuf8CjMOMmqtQ0 jxiJgKadgpIyZGsAMIlEGSFzSyLGucEfqusH0RSE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Nyekjaer , Jonathan Cameron , Sudip Mukherjee Subject: [PATCH 4.14 12/28] iio: imu: st_lsm6dsx: flip irq return logic Date: Fri, 15 Jan 2021 13:27:49 +0100 Message-Id: <20210115121957.363993114@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210115121956.731354372@linuxfoundation.org> References: <20210115121956.731354372@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Nyekjaer commit ec76d918f23034f9f662539ca9c64e2ae3ba9fba upstream No need for using reverse logic in the irq return, fix this by flip things around. Signed-off-by: Sean Nyekjaer Signed-off-by: Jonathan Cameron Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c @@ -401,7 +401,7 @@ static irqreturn_t st_lsm6dsx_handler_th count = st_lsm6dsx_read_fifo(hw); mutex_unlock(&hw->fifo_lock); - return !count ? IRQ_NONE : IRQ_HANDLED; + return count ? IRQ_HANDLED : IRQ_NONE; } static int st_lsm6dsx_buffer_preenable(struct iio_dev *iio_dev)