Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5744693rwb; Wed, 7 Sep 2022 07:25:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR6+tqSmdVjzWjBhKaX4gRwdmmgD+ozCLfITHx5UIFlQhs52G8TaPMb0ZViBpdwomHYh//QM X-Received: by 2002:a17:907:2701:b0:741:51eb:2338 with SMTP id w1-20020a170907270100b0074151eb2338mr2532628ejk.501.1662560739844; Wed, 07 Sep 2022 07:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662560739; cv=none; d=google.com; s=arc-20160816; b=ICQw5U8+sYdtMOLojNuOFc3dRVY9Sx+v1ZG4oWQcDCu9Mli28GJsfBscJ1ar2Va6zy P+VfFZ5HST6u8DZN8AJGuOVPQhkcr7zp1gy7xG0ZgWpO7f6gt0DlQpwja3FEj5vzS7Bv kfjNezVFXgR62YDfznyfe1sWBj7oYEcl8JIgadZwAdIXGbBQhqcK4XQx9tqHJT89uHcj XNjna8p94lekyzkhV2IrurRUUAHD3bLsjFRGYIhDt6K10VtwM4/low45yYkfjAtsEWin lZgE29IUGeza++SPp2FAyff8s/V6+0aVOkzlzIxoFYkSezobQNMmN+KTXSDVrIM1yyMj xBUA== 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=GKwi6aKBpdO41oPoWHgZ52AEw311r++GRtA1YpIHIts=; b=wAk9JB9i7omzJ5heza9nAqIms6om0wVe1RktHZ6R7NFOXW3AhhZnpKmITL2TdJV50O f1QutIixMEygh21w/Hrq8OyNF8b5wMQY0AS2pW4FdYOEPM5EOvLiCKrHaZF5zqLS0NQO zD5Y7QAZMQzd0OPeIXZetfI+imxbIL8xn+0A6+m/FTchyO5jKRT/44ut7JSxGGhYWsQn 33WS1iyz2hFg8L2J4c29oWpHYdoK4UQVfm5AHrj6VT3uacDnCCMHtphzA9wmQ4ga1zfs ydMI+0SDgh2lUynkE8X/eYwbtCHzdl5rOhs/vqenGIUAlfU3ZAs7Pk9kNhcD4aJTthTV OH8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@iit.it header.s=mx header.b=pTnOjGbg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=iit.it Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020aa7c585000000b00447cc666243si2613508edq.164.2022.09.07.07.25.13; Wed, 07 Sep 2022 07:25:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iit.it header.s=mx header.b=pTnOjGbg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=iit.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbiIGNiD (ORCPT + 99 others); Wed, 7 Sep 2022 09:38:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiIGNhh (ORCPT ); Wed, 7 Sep 2022 09:37:37 -0400 Received: from es400ra02.iit.it (mx.iit.it [90.147.26.161]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E6FA8D3E7; Wed, 7 Sep 2022 06:37:31 -0700 (PDT) Received: from es400ra02.iit.it (127.0.0.1) id h32f9i0171sv; Wed, 7 Sep 2022 15:22:26 +0200 (envelope-from ) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iit.it; s=mx; i=@iit.it; h=Received:Received:From:To:CC:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=GKwi6aKBpdO41oPoWHgZ5 2AEw311r++GRtA1YpIHIts=; b=pTnOjGbgCc/laLmVw8w0F/KvUln1FWfROXSUi XRBf1Pax4/fL9ATPKi+tjLmlJrGrZswQRISq6D+lHvSc8mf7fmHYCdq5jA1Zdton uysL/hGacu2JpyUP0mYw+1O3laoD4vJxvtLMV0hsXza3bAZ2IM9cTybmfSfcbaXM KmlZcA= Received: from mail.iit.it ([10.255.8.186]) by es400ra02.iit.it ([172.31.0.242]) (SonicWall 10.0.16.7295) with ESMTPS (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256) id o202209071322260212548-8; Wed, 07 Sep 2022 15:22:26 +0200 Received: from poker.iit.local (10.10.20.64) by iitmxwge020.iit.local (10.255.8.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 7 Sep 2022 15:22:25 +0200 From: To: , , , , CC: , , , , , , , , Andrea Merello Subject: [v7 06/14] iio: event_monitor: add pitch, yaw and roll modifiers Date: Wed, 7 Sep 2022 15:21:57 +0200 Message-ID: <20220907132205.28021-7-andrea.merello@iit.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220907132205.28021-1-andrea.merello@iit.it> References: <20220907132205.28021-1-andrea.merello@iit.it> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.10.20.64] X-ClientProxiedBy: IITMXWGE021.iit.local (10.255.8.187) To iitmxwge020.iit.local (10.255.8.186) X-Mlf-DSE-Version: 6948 X-Mlf-Rules-Version: s20220810181453; ds20200715013501; di20220831211829; ri20160318003319; fs20220901203539 X-Mlf-Smartnet-Version: 20210917223710 X-Mlf-Envelope-From: Andrea.Merello@iit.it X-Mlf-Version: 10.0.16.7295 X-Mlf-License: BSV_C_AP_T_R X-Mlf-UniqueId: o202209071322260212548 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 pitch, yaw and roll IIO modifiers, update the event_monitor tool accordingly. Signed-off-by: Andrea Merello Reviewed-by: Andy Shevchenko --- 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 1fee44abb836..ee3f78c47655 100644 --- a/tools/iio/iio_event_monitor.c +++ b/tools/iio/iio_event_monitor.c @@ -125,6 +125,9 @@ static const char * const iio_modifier_names[] = { [IIO_MOD_LINEAR_X] = "linear_x", [IIO_MOD_LINEAR_Y] = "linear_y", [IIO_MOD_LINEAR_Z] = "linear_z", + [IIO_MOD_PITCH] = "pitch", + [IIO_MOD_YAW] = "yaw", + [IIO_MOD_ROLL] = "roll", }; static bool event_is_known(struct iio_event_data *event) -- 2.17.1