egl: Rename _eglRefreshDeviceList() to _eglDeviceRefreshList()
authorRobert Foss <rfoss@kernel.org>
Mon, 19 Jun 2023 12:15:04 +0000 (14:15 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Jul 2023 22:27:00 +0000 (22:27 +0000)
Rename this function to better reflect it's location
and what structs it relates to.

Signed-off-by: Robert Foss <rfoss@kernel.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23742>

src/egl/main/egldevice.c

index 897610e..ab96a8d 100644 (file)
@@ -285,7 +285,7 @@ _eglQueryDeviceStringEXT(_EGLDevice *dev, EGLint name)
  * Must be called with the global lock held.
  */
 static int
-_eglRefreshDeviceList(void)
+_eglDeviceRefreshList(void)
 {
    ASSERTED _EGLDevice *dev;
    int count = 0;
@@ -334,7 +334,7 @@ _eglQueryDevicesEXT(EGLint max_devices, _EGLDevice **devices,
 
    simple_mtx_lock(_eglGlobal.Mutex);
 
-   num_devs = _eglRefreshDeviceList();
+   num_devs = _eglDeviceRefreshList();
    devs = _eglGlobal.DeviceList;
 
 #ifdef GALLIUM_SOFTPIPE