Lines Matching full:rotation
360 * the "rotation" binding from a device tree node
364 * Looks up the rotation of a panel in the device tree. The orientation of the
365 * panel is expressed as a property name "rotation" in the device tree. The
366 * rotation in the device tree is counter clockwise.
368 * Return: 0 when a valid rotation value (0, 90, 180, or 270) is read or the
369 * rotation property doesn't exist. Return a negative error code on failure.
374 int rotation, ret; in of_drm_get_panel_orientation() local
376 ret = of_property_read_u32(np, "rotation", &rotation); in of_drm_get_panel_orientation()
378 /* Don't return an error if there's no rotation property. */ in of_drm_get_panel_orientation()
386 if (rotation == 0) in of_drm_get_panel_orientation()
388 else if (rotation == 90) in of_drm_get_panel_orientation()
390 else if (rotation == 180) in of_drm_get_panel_orientation()
392 else if (rotation == 270) in of_drm_get_panel_orientation()