]> sigrok.org Git - libsigrok.git/blobdiff - hardware/alsa/alsa.c
Hardware drivers: Use names for struct entries.
[libsigrok.git] / hardware / alsa / alsa.c
index 8624f2eb82b7e6945180f063f9b7b6eee735830c..f567e43aeb16ad8233fc3eccab0c66cc70a5476c 100644 (file)
@@ -359,17 +359,17 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
 }
 
 struct sr_device_plugin alsa_plugin_info = {
-       "alsa",
-       "ALSA driver",
-       1,
-       hw_init,
-       hw_cleanup,
-       hw_opendev,
-       hw_closedev,
-       hw_get_device_info,
-       hw_get_status,
-       hw_get_capabilities,
-       hw_set_configuration,
-       hw_start_acquisition,
-       hw_stop_acquisition,
+       .name = "alsa",
+       .longname = "ALSA driver",
+       .api_version = 1,
+       .init = hw_init,
+       .cleanup = hw_cleanup,
+       .open = hw_opendev,
+       .close = hw_closedev,
+       .get_device_info = hw_get_device_info,
+       .get_status = hw_get_status,
+       .get_capabilities = hw_get_capabilities,
+       .set_configuration = hw_set_configuration,
+       .start_acquisition = hw_start_acquisition,
+       .stop_acquisition = hw_stop_acquisition,
 };