@@ -804,19 +804,19 @@ int drm_client_modeset_probe(struct drm_client_dev *client, unsigned int width,
804
804
EXPORT_SYMBOL (drm_client_modeset_probe );
805
805
806
806
/**
807
- * drm_client_panel_rotation () - Check panel orientation
807
+ * drm_client_rotation () - Check the initial rotation value
808
808
* @modeset: DRM modeset
809
809
* @rotation: Returned rotation value
810
810
*
811
- * This function checks if the primary plane in @modeset can hw rotate to match
812
- * the panel orientation on its connector.
811
+ * This function checks if the primary plane in @modeset can hw rotate
812
+ * to match the rotation needed on its connector.
813
813
*
814
814
* Note: Currently only 0 and 180 degrees are supported.
815
815
*
816
816
* Return:
817
817
* True if the plane can do the rotation, false otherwise.
818
818
*/
819
- bool drm_client_panel_rotation (struct drm_mode_set * modeset , unsigned int * rotation )
819
+ bool drm_client_rotation (struct drm_mode_set * modeset , unsigned int * rotation )
820
820
{
821
821
struct drm_connector * connector = modeset -> connectors [0 ];
822
822
struct drm_plane * plane = modeset -> crtc -> primary ;
@@ -857,7 +857,7 @@ bool drm_client_panel_rotation(struct drm_mode_set *modeset, unsigned int *rotat
857
857
858
858
return true;
859
859
}
860
- EXPORT_SYMBOL (drm_client_panel_rotation );
860
+ EXPORT_SYMBOL (drm_client_rotation );
861
861
862
862
static int drm_client_modeset_commit_atomic (struct drm_client_dev * client , bool active )
863
863
{
@@ -902,7 +902,7 @@ static int drm_client_modeset_commit_atomic(struct drm_client_dev *client, bool
902
902
struct drm_plane * primary = mode_set -> crtc -> primary ;
903
903
unsigned int rotation ;
904
904
905
- if (drm_client_panel_rotation (mode_set , & rotation )) {
905
+ if (drm_client_rotation (mode_set , & rotation )) {
906
906
struct drm_plane_state * plane_state ;
907
907
908
908
/* Cannot fail as we've already gotten the plane state above */
0 commit comments