Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp26654pxb; Fri, 15 Jan 2021 05:03:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwerujxq0c1Vux8IhRW2hOZiifixop8Tf+7mKJlrW0ZjC3dy3rNDO0JcncqkzPtwpnKtzH3 X-Received: by 2002:aa7:d909:: with SMTP id a9mr264226edr.284.1610715797567; Fri, 15 Jan 2021 05:03:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610715797; cv=none; d=google.com; s=arc-20160816; b=ld9meEv6UYbDBGcrw6VA4zn7a2KJZnxvq5YYZPmEPu/imxeaD1EFABQ2ZxBUK4nX58 Ay6cw8kGvLyfAAZmMKYUb2OE7nEU0w5LtayUoKRs4quj/yDfLotn+XrIvZFZSZeAp2E/ 6tjHSrqVmrZD2FClP8sjuSNTbN8JFHlPMuqEsQu6A72Y32v7mMuRVKNEZ6dHGI/Bt9Oo oYSAPd6BiTwoRObowWr0YSMT6YGtTTpD3MXq5IfDnkDTyw5kUYkCAk9bzTKYraetr2wk suW5kjTWX+HzV+sTiVyzoqJCy+wSWlNidet10HDq2FzmSdD9mptLIKoBT6+qigLqu9d7 s+iw== 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=g9Uoh1N6LpCED7MzAl8yQd/hFvOa0WSlLf7YxhMtGp0=; b=EKnuRtrIakbokO6Jrsgy1fcz0DUhgEyXxDSrj92gKgyI/Ie4tpibX4q08PpdhiGjBu HsDOCd20OBg+wLg4TGmR3d53PLr+bII7tmZrLnXywuQqdi/SZsg5DfbMOfdYFiEBnuLF CNU2xt7Vp1X1tA554XIHhonC8GvXzb8Rs2zJ9L3q4TZ0veBek4aNoqZicNmnRVv91S4V p73Zj7TdUA/iZ1Fj69tgpP+lOoFZrMNWGUbUqijLyzdF1N9PBBMWPHNgFGbSXfWdeBhS 43YkTvywQtAMSH/qL9vyeD/KpRjV/wAoPZDKlBa8XubTcOHidcYOskDlCAAPeBQ5N38T bLLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FUaRu6Xb; 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 u7si4273717edb.213.2021.01.15.05.02.53; Fri, 15 Jan 2021 05:03:17 -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=FUaRu6Xb; 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 S1731882AbhAOMcv (ORCPT + 99 others); Fri, 15 Jan 2021 07:32:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:38812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733010AbhAOMco (ORCPT ); Fri, 15 Jan 2021 07:32:44 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 055432336F; Fri, 15 Jan 2021 12:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610713949; bh=6gvE6nzPjcWnoQZJOaFtUVrfogYLaWHJndWXDwnj+P8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FUaRu6XbqvOUDTQhyd1bBPWFz+U80gQ+y8AbNd7R/PDSyg1UWglVjrxi9AEa5HiJ5 4ipvwK0J/6v9ceQIiO0IjnjzYXNQJeRPo6zLTXeniYKmeMpK7ZUIG4DLDnfZtezFX9 7I0x5JN/Fj+FgxXvn0+fgNLU1Tw6OnCjad2QJaPQ= 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.19 21/43] iio: imu: st_lsm6dsx: flip irq return logic Date: Fri, 15 Jan 2021 13:27:51 +0100 Message-Id: <20210115121958.071514885@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210115121957.037407908@linuxfoundation.org> References: <20210115121957.037407908@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 @@ -481,7 +481,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)