From patchwork Tue Apr 26 13:10:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Merello X-Patchwork-Id: 12827125 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2561C433EF for ; Tue, 26 Apr 2022 13:11:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350700AbiDZNOU (ORCPT ); Tue, 26 Apr 2022 09:14:20 -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-Google-Smtp-Source: ABdhPJx2TKDehW+zO5PUolqYD+xQQY91TLVCUtspWTcZUD6s/GLueRY2HtFuovygDfc7b5s6GQ/hcQ== 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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@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)