aboutsummaryrefslogtreecommitdiffstats
path: root/drv_LCD2USB.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-25 12:27:26 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-25 12:27:26 +0000
commit3c851dd7e04640567ad5a738c43727bb40e9103e (patch)
treed6d80e104d74d26d5d8a67391958e8e362bf5633 /drv_LCD2USB.c
parent51db519d969ceb3fb82effb49126314ca1d917b0 (diff)
downloadlcd4linux-3c851dd7e04640567ad5a738c43727bb40e9103e.tar.gz
lots of compiler warnings removed, C++-style comments removed, changed struc initialisation from 'field:value' to '.field=value'
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@771 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_LCD2USB.c')
-rw-r--r--drv_LCD2USB.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drv_LCD2USB.c b/drv_LCD2USB.c
index ca0c30e..40360a3 100644
--- a/drv_LCD2USB.c
+++ b/drv_LCD2USB.c
@@ -169,13 +169,13 @@ static int drv_L2U_send(int request, int value, int index)
usb_release_interface(lcd, 0);
usb_close(lcd);
- // try to close and reopen connection
+ /* try to close and reopen connection */
if (drv_L2U_open(bus_id, device_id) < 0) {
error("%s: could not re-detect LCD2USB USB LCD", Name);
got_signal = -1;
return -1;
}
- // and try to re-send command
+ /* and try to re-send command */
if (usb_control_msg(lcd, USB_TYPE_VENDOR, request, value, index, NULL, 0, 1000) < 0) {
error("%s: retried USB request failed, aborting!", Name);
got_signal = -1;
@@ -269,10 +269,10 @@ static void drv_L2U_get_controllers(void)
error("%s: no controllers found", Name);
} else {
error("%s: unable to read installed controllers", Name);
- controllers = 0; // don't access any controllers
+ controllers = 0; /* don't access any controllers */
}
- // convert into controller map matching our protocol
+ /* convert into controller map matching our protocol */
controllers = ((controllers & 1) ? LCD_CTRL_0 : 0) | ((controllers & 2) ? LCD_CTRL_1 : 0);
}
@@ -673,8 +673,8 @@ int drv_L2U_quit(const int quiet)
DRIVER drv_LCD2USB = {
- name:Name,
- list:drv_L2U_list,
- init:drv_L2U_init,
- quit:drv_L2U_quit,
+ .name = Name,
+ .list = drv_L2U_list,
+ .init = drv_L2U_init,
+ .quit = drv_L2U_quit,
};