Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4417661ioa; Wed, 27 Apr 2022 03:30:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOnARb47Yymkymi+WLyI/eQxrVvYs2Rv+QkAR9hpjqsIBrPmEao79ToU+1huatDoTS/DMT X-Received: by 2002:a17:902:ec83:b0:15d:4a5e:3abb with SMTP id x3-20020a170902ec8300b0015d4a5e3abbmr4237512plg.157.1651055408998; Wed, 27 Apr 2022 03:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651055408; cv=none; d=google.com; s=arc-20160816; b=08VXJuoaVPNd/wx3mXQtOQxMGZQfzaNgYW6kOHVaa0llNqHHIknw7PvQ0gqSWEeN9U Bbefv/hoN8gw+TTdxt5HrFJbMKSrM2d+M7KOPm+bhqIIwJ4h/lNdWvIFQ2dE+lGseWx3 jxVZpy/2J2Nh/FJxxGuXqCcOKzH0CaqXeXEuJbeMiNyCP4LJvWBiQ3OIOl86gKOKq61U zJxejDXBZAWeE8p/iy6RgFe/9g/jkKdkFnPJy5rOn535//QorraPVw+Ttnl3ViK6bP2o HPJ8mznVcKr6AJUesF5sN6Gsx9u8MBbZaHmY0/JZ2hQ/SYGA/jmQMNmuteSTu2Pd6Z1w IFXg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kfnF6/CFLRO/YWIMp2M2vTWsFrhBcq/i21FGwSxlZOI=; b=T0O4NGl0evPdvA4+FYcb/8LHnXASb+H5TLABUGp1V9M2zTm54W4nDi3LDkWCqhVF15 G9idVXCWs1a8uBMQ1oRIwqhrDlR4Klazq0VnIsQNVd7botuRBWbYJPyefv+WSKVLu5QS ogYHRQoygRoRvXyq6rGIlmYK8onK7alVdxYbUT+uwUlX3wJXR736LJtHU3cmXLNG7bRT aK+vewdR2mcnl7hYnGC4y23NtX1IJLR/RR1i9b2cT9i2rGIgVLEw2f6EPomGHf5vwrig raTtQndWyI2bbyrPo7je/Z82diiGZY5vhuQVR7Ws80DxpYi6hNvXcx6l86Byan8eSji0 8CNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="a/6ncwPO"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m2-20020a635802000000b003ab421132b0si1151026pgb.235.2022.04.27.03.30.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:30:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="a/6ncwPO"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 97A3E3A9100; Wed, 27 Apr 2022 02:45:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350714AbiDZNO1 (ORCPT + 99 others); Tue, 26 Apr 2022 09:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242086AbiDZNOT (ORCPT ); Tue, 26 Apr 2022 09:14:19 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 501CF606E9; Tue, 26 Apr 2022 06:11:12 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id b19so25383495wrh.11; Tue, 26 Apr 2022 06:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kfnF6/CFLRO/YWIMp2M2vTWsFrhBcq/i21FGwSxlZOI=; b=a/6ncwPOBYgHuHdxgzRIisoTlNMEFriWCOm4ghCkoVEycDQ3RoA834EkKHozJr4msL OuBhDNJEMvKum07ErAJj7sY0Hu+lQ0y42e7hUjW5WoCShTQyJ5UaQjFQCuneiyllKtco To3vUsy01Gm1s33icdf+PNyO0OiHSWH/CZNtJrekO//jBvfyzG80E8xA9/d/HYrZBb0v 46zxySMRIOtwk/OCmt2HhaV2LMkVtmguQ1dd03aYfql9z2addpto6Cbw1lO1YCMKGjDv teNcYqOqjbEgI6g/WkItxfrj3HdnfaAv593RI7on48bvmrjdG41nl09WV+mcRszbARzA JPQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kfnF6/CFLRO/YWIMp2M2vTWsFrhBcq/i21FGwSxlZOI=; b=sA3xfwaxX0NT2ScAKwn9uhhbi9wtBzCA0HWZt7bEsoI5CEzQ0iNz1JB6DENVhIw04W qTA/Ucevxq0sx3xnXJvzeo71VtVoeIifx4WQQ3NlX+QEFKt4chen/WzNnUNCNp+A0kMl 8WvhHjJuU1+WCPfKZjS0XK2/pFh5Nzjh34sWFGTvpw8byPx0nyX3gan4cPc6JTrQ9FrK RfHJ70x/HNxOOEqKiwBWgAuQQufM0efluyMRTHMdpVf9f5swG3EEtuuAwwjogzJ/1WvP RoNmGszDXYwvjmXSuxXcB5CCvJGP5KF/P0QzgK5OWXLCGluhHW+a8mZ2rRbtEViCyJff Y0rw== X-Gm-Message-State: AOAM530SgQm6MVhKrystl9APIULCLKUixdbC9tlZ5Ysia6SjFBGebyqq Z3w2BDBAHlCyjLk+P7tmXh4= X-Received: by 2002:a5d:6189:0:b0:20a:e30f:ca18 with SMTP id j9-20020a5d6189000000b0020ae30fca18mr3535686wru.241.1650978670834; Tue, 26 Apr 2022 06:11:10 -0700 (PDT) Received: from poker.lan (static.2-229-210-222.ip198.fastwebnet.it. [2.229.210.222]) by smtp.gmail.com with ESMTPSA id h9-20020a05600c350900b00393f01c8f00sm3262910wmq.47.2022.04.26.06.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 06:11:10 -0700 (PDT) From: Andrea Merello To: jic23@kernel.org, mchehab+huawei@kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: lars@metafoo.de, robh+dt@kernel.org, andy.shevchenko@gmail.com, matt.ranostay@konsulko.com, ardeleanalex@gmail.com, jacopo@jmondi.org, Andrea Merello Subject: [v5 03/14] iio: event_monitor: add linear acceleration modifiers Date: Tue, 26 Apr 2022 15:10:51 +0200 Message-Id: <20220426131102.23966-4-andrea.merello@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220426131102.23966-1-andrea.merello@gmail.com> References: <20220426131102.23966-1-andrea.merello@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrea Merello Following the introduction of IIO linear acceleration modifiers, update the event_monitor tool accordingly. Signed-off-by: Andrea Merello --- tools/iio/iio_event_monitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c index 2f4581658859..1fee44abb836 100644 --- a/tools/iio/iio_event_monitor.c +++ b/tools/iio/iio_event_monitor.c @@ -122,6 +122,9 @@ static const char * const iio_modifier_names[] = { [IIO_MOD_PM4] = "pm4", [IIO_MOD_PM10] = "pm10", [IIO_MOD_O2] = "o2", + [IIO_MOD_LINEAR_X] = "linear_x", + [IIO_MOD_LINEAR_Y] = "linear_y", + [IIO_MOD_LINEAR_Z] = "linear_z", }; static bool event_is_known(struct iio_event_data *event) -- 2.17.1