Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1437157pxb; Thu, 28 Oct 2021 03:47:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWT/9OqdzCIVhSSQmAJ9Mw7+jO/I5EQzGM72JHAA2DnHd6zRTRqYfRPaGC8KsBC1Jpr/h2 X-Received: by 2002:a17:906:9a4c:: with SMTP id aj12mr4419305ejc.557.1635418040568; Thu, 28 Oct 2021 03:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635418040; cv=none; d=google.com; s=arc-20160816; b=ZLwgv/j3+qgC45M9IjUEox1QSmOb4eYjufgb7wVMFfewCUjr/l5ktATwl08qLtSQUO 6/96zX9jOBiAPrTBn1ohZtRFVdR11NvhK7wYzKe2+2X+gnr+1c77PsZz6m3M3IRb8Jz4 8frrIWj5ZVjDTi/HbL6T/UEQ/ZEg/m9Pvo85EbrxV5tAMubhgNx6u6I0X2RekjwFc/vl wZjgZuPRQoiAdzJTw/mFLE3WOXByMnKBTBMYbqtjvII7QXtIJpMqjRQy1jB1BtGscpMm wcgsbYvvR6v9QiqeV5KOnD1POkfVdlleisvXfQ+v7rW1OkkfYbt5fFR0bhso/LFNcHbo GaNA== 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:subject:cc:to:from:date; bh=jNclGqb0WWEk4G1NaR3T00JsldZ+C4FT9/dPBszTrYo=; b=FJ0/vIpH6IgR8SYh5wSbxEIpmoKr2ca1iR1ScvMeUVcbKqpr9vWN+izcDknswz8cYP ePd2xrLK86UIUQfKSyc0lsyQI+7Dj9xSoll1mHW0wdZ9e7taTEOL03gXFxDTW75D5iZd T6Lc/ZP0jOH5pQU9UJ7UEpzbMsvxmY3PatJyaU1hANeb1bvb75UdN6jgogqk1bjryjCy 6X3CSApHaLrc6y0tcSsjc8FJRPJTEtqNhcCfxbDQrLTHT2jM5mhSfafRbm/NycZww1Wq jbvP+43jrT6EPdv5AjbuO84H0r5rGdWF5gC8YPEQSngmVdJC0uyQkaCVYCYisVj02kSE i1dQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd4si3797574ejc.515.2021.10.28.03.46.56; Thu, 28 Oct 2021 03:47:20 -0700 (PDT) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230093AbhJ1KpF (ORCPT + 99 others); Thu, 28 Oct 2021 06:45:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:45274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbhJ1KpE (ORCPT ); Thu, 28 Oct 2021 06:45:04 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B396B60F58; Thu, 28 Oct 2021 10:42:34 +0000 (UTC) Date: Thu, 28 Oct 2021 11:47:00 +0100 From: Jonathan Cameron To: Andrea Merello Cc: mchehab+huawei@kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, lars@metafoo.de, robh+dt@kernel.org, andy.shevchenko@gmail.com, matt.ranostay@konsulko.com, ardeleanalex@gmail.com, jacopo@jmondi.org, Andrea Merello Subject: Re: [v2 05/10] iio: add modifers for pitch, yaw, roll Message-ID: <20211028114700.788635ba@jic23-huawei> In-Reply-To: <20211028101840.24632-6-andrea.merello@gmail.com> References: <20210715141742.15072-1-andrea.merello@gmail.com> <20211028101840.24632-1-andrea.merello@gmail.com> <20211028101840.24632-6-andrea.merello@gmail.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 Oct 2021 12:18:35 +0200 Andrea Merello wrote: > This patch adds modifiers for reporting rotations as euler angles (i.e. > yaw, pitch and roll). > > Signed-off-by: Andrea Merello Same comment on tools update, and a few editorial things inline. Jonathan > --- > drivers/iio/industrialio-core.c | 5 ++++- > include/uapi/linux/iio/types.h | 3 +++ > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c > index a79cb32207e4..d2ebbfa8b9fc 100644 > --- a/drivers/iio/industrialio-core.c > +++ b/drivers/iio/industrialio-core.c > @@ -136,7 +136,10 @@ static const char * const iio_modifier_names[] = { > [IIO_MOD_O2] = "o2", > [IIO_MOD_ACCEL_LINEAR_X] = "linear_x", > [IIO_MOD_ACCEL_LINEAR_Y] = "linear_y", > - [IIO_MOD_ACCEL_LINEAR_Z] = "linear_z" > + [IIO_MOD_ACCEL_LINEAR_Z] = "linear_z", Move the comman to the previous patch. > + [IIO_MOD_PITCH] = "pitch", > + [IIO_MOD_YAW] = "yaw", > + [IIO_MOD_ROLL] = "roll" > }; > > /* relies on pairs of these shared then separate */ > diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h > index db00f7c45f48..fc9909ca4f95 100644 > --- a/include/uapi/linux/iio/types.h > +++ b/include/uapi/linux/iio/types.h > @@ -98,6 +98,9 @@ enum iio_modifier { > IIO_MOD_ACCEL_LINEAR_X, > IIO_MOD_ACCEL_LINEAR_Y, > IIO_MOD_ACCEL_LINEAR_Z, > + IIO_MOD_PITCH, > + IIO_MOD_YAW, > + IIO_MOD_ROLL And add a comma here to make extending this in future easy. > }; > > enum iio_event_type {