Lines Matching defs:rotation
266 * the "rotation" binding from a device tree node
270 * Looks up the rotation of a panel in the device tree. The orientation of the
271 * panel is expressed as a property name "rotation" in the device tree. The
272 * rotation in the device tree is counter clockwise.
274 * Return: 0 when a valid rotation value (0, 90, 180, or 270) is read or the
275 * rotation property doesn't exist. Return a negative error code on failure.
280 int rotation, ret;
282 ret = of_property_read_u32(np, "rotation", &rotation);
284 /* Don't return an error if there's no rotation property. */
292 if (rotation == 0)
294 else if (rotation == 90)
296 else if (rotation == 180)
298 else if (rotation == 270)