From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933278AbbFIQft (ORCPT ); Tue, 9 Jun 2015 12:35:49 -0400 Received: from vegas.theobroma-systems.com ([144.76.126.164]:32817 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932367AbbFIQfB (ORCPT ); Tue, 9 Jun 2015 12:35:01 -0400 X-Greylist: delayed 1882 seconds by postgrey-1.27 at vger.kernel.org; Tue, 09 Jun 2015 12:35:00 EDT Message-ID: <55770E56.5070701@theobroma-systems.com> Date: Tue, 09 Jun 2015 18:03:34 +0200 From: Martin Kepplinger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: jic23@kernel.org, irina.tirdea@intel.com, daniel.baluta@intel.com CC: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: iio: what does in_accel_x_thresh_rising_en ? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi Is the in_accel_thresh_rising_value (or falling) threshold value signed or unsigned? In other words: Is a RISING event fired on an absolute growing value in the positive range, and a FALLING event on an absolute growing value in the negative acceleration range (< 0g)? Or is a RISING event fired on a signed rising value, no matter if the threshold is positive or negative, and a FALLING event on a decreasing signed value, also when the threshold is positive? thanks martin