From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH v1 2/3] iio:ak8975: add mounting matrix support Date: Fri, 22 Apr 2016 14:57:02 -0500 Message-ID: <20160422195702.GA23956@rob-hp-laptop> References: <43de59ea1cc5ba93bebd721b761da4749956afa0.1461170293.git.gregor.boirie@parrot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <43de59ea1cc5ba93bebd721b761da4749956afa0.1461170293.git.gregor.boirie-ITF29qwbsa/QT0dZR+AlfA@public.gmane.org> Sender: linux-iio-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Gregor Boirie Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Matt Ranostay , Daniel Baluta , Vladimir Barinov , Martin Fuzzey , Cristina Opriceana , Varka Bhadram , Lucas De Marchi , Julia Lawall , Peter Rosin , Leonard Crestez List-Id: devicetree@vger.kernel.org On Wed, Apr 20, 2016 at 07:23:44PM +0200, Gregor Boirie wrote: > Expose a rotation matrix to indicate userspace the chip orientation with > respect to the overall hardware system. > Matrix is retrieved from "in_mount_matrix". It is declared into ak8975 DTS > entry as a "mount-matrix" property. > > Signed-off-by: Gregor Boirie > --- > .../bindings/iio/magnetometer/ak8975.txt | 10 +++++++ Acked-by: Rob Herring > drivers/iio/magnetometer/ak8975.c | 34 +++++++++++++++++++--- > include/linux/iio/magnetometer/ak8975.h | 16 ++++++++++ > 3 files changed, 56 insertions(+), 4 deletions(-) > create mode 100644 include/linux/iio/magnetometer/ak8975.h