From 874ef72c5b807b61bc53dbaa0fa623b40bff1736 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Mon, 30 Apr 2007 09:35:54 +0200 Subject: new upstream version --- drv_LCD2USB.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'drv_LCD2USB.c') diff --git a/drv_LCD2USB.c b/drv_LCD2USB.c index ecf8fcc..ae3fccf 100644 --- a/drv_LCD2USB.c +++ b/drv_LCD2USB.c @@ -1,4 +1,4 @@ -/* $Id: drv_LCD2USB.c 728 2007-01-14 11:14:38Z michael $ +/* $Id: drv_LCD2USB.c 773 2007-02-25 12:39:09Z michael $ * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/drv_LCD2USB.c $ * * driver for USB2LCD display interface @@ -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); } @@ -582,7 +582,7 @@ int drv_L2U_init(const char *section, const int quiet) int asc255bug; int ret; - info("%s: %s", Name, "$Rev: 728 $"); + info("%s: %s", Name, "$Rev: 773 $"); /* display preferences */ XRES = 5; /* pixel width of one char */ @@ -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, }; -- cgit v1.2.3