Lines Matching defs:matrix
575 struct iio_mount_matrix *matrix)
577 *matrix = iio_mount_idmatrix;
578 dev_info(dev, "mounting matrix not found: using identity...\n");
602 * iio_read_mount_matrix() - retrieve iio device mounting matrix from
603 * device "mount-matrix" property
604 * @dev: device the mounting matrix property is assigned to
605 * @matrix: where to store retrieved matrix
607 * If device is assigned no mounting matrix property, a default 3x3 identity
608 * matrix will be filled in.
612 int iio_read_mount_matrix(struct device *dev, struct iio_mount_matrix *matrix)
617 err = device_property_read_string_array(dev, "mount-matrix", matrix->rotation, len);
622 /* Invalid number of matrix entries. */
626 /* Invalid matrix declaration format. */
630 return iio_setup_mount_idmatrix(dev, matrix);