linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] iio: drop const typing from iio_mount_matrix rotation
@ 2018-12-20  6:59 Daniel Drake
  2018-12-20  6:59 ` [PATCH 2/2] iio: st_accel: use ACPI orientation data Daniel Drake
  2019-01-19 16:49 ` [PATCH 1/2] iio: drop const typing from iio_mount_matrix rotation Jonathan Cameron
  0 siblings, 2 replies; 10+ messages in thread
From: Daniel Drake @ 2018-12-20  6:59 UTC (permalink / raw)
  To: jic23
  Cc: knaack.h, lars, pmeerw, linux-iio, linux, lorenzo.bianconi83,
	denis.ciocca, hadess, hdegoede

In order to conform with orientation data from the firmware, we
need to dynamically construct the mount matrix in the ST accelerometer
driver.

Drop the const type from the mount matrix data to make this possible.

Signed-off-by: Daniel Drake <drake@endlessm.com>
---
 include/linux/iio/iio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index a74cb177dc6f..d3094ffeb9da 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -125,7 +125,7 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev,
  *            main hardware
  */
 struct iio_mount_matrix {
-	const char *rotation[9];
+	char *rotation[9];
 };
 
 ssize_t iio_show_mount_matrix(struct iio_dev *indio_dev, uintptr_t priv,
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-01-26 17:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-20  6:59 [PATCH 1/2] iio: drop const typing from iio_mount_matrix rotation Daniel Drake
2018-12-20  6:59 ` [PATCH 2/2] iio: st_accel: use ACPI orientation data Daniel Drake
2018-12-22 18:09   ` Jonathan Cameron
2019-01-12 19:13     ` Jonathan Cameron
2019-01-15  0:18       ` Denis CIOCCA
2019-01-15  3:09         ` Daniel Drake
2019-01-19 16:50           ` Jonathan Cameron
2019-01-26 17:27             ` Jonathan Cameron
2019-01-19 16:49 ` [PATCH 1/2] iio: drop const typing from iio_mount_matrix rotation Jonathan Cameron
2019-01-21  8:42   ` Daniel Drake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).