new upstream 2.8.0
This commit is contained in:
parent
fc7f4b43c1
commit
b2b0c9995a
836 changed files with 137090 additions and 30018 deletions
|
@ -168,6 +168,9 @@ cat > "$CFILE" <<EOF
|
|||
* 2008 - 2009 Arjen de Korte <adkorte-guest@alioth.debian.org>
|
||||
* 2013 Charles Lepple <clepple+nut@gmail.com>
|
||||
*
|
||||
* TODO: Add year and name for new subdriver author (contributor)
|
||||
* Mention in docs/acknowledgements.txt if this is a vendor contribution
|
||||
*
|
||||
* Note: this subdriver was initially generated as a "stub" by the
|
||||
* gen-usbhid-subdriver script. It must be customized.
|
||||
*
|
||||
|
@ -203,7 +206,7 @@ static usb_device_id_t ${LDRIVER}_usb_device_table[] = {
|
|||
{ USB_DEVICE(${UDRIVER}_VENDORID, 0x${PRODUCTID}), NULL },
|
||||
|
||||
/* Terminating entry */
|
||||
{ -1, -1, NULL }
|
||||
{ 0, 0, NULL }
|
||||
};
|
||||
|
||||
|
||||
|
@ -218,7 +221,7 @@ EOF
|
|||
cat "$SUBST" | sed 's/\(.*\) \(.*\)/\t{ "\2",\t0x\1 },/' >> "$CFILE"
|
||||
|
||||
cat >> "$CFILE" <<EOF
|
||||
{ NULL, 0 }
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
static usage_tables_t ${LDRIVER}_utab[] = {
|
||||
|
@ -238,14 +241,14 @@ EOF
|
|||
cat "$NEWUTABLE" | sort -u | while read U; do
|
||||
UL=`echo $U | tr A-Z a-z`
|
||||
cat >> "$CFILE" <<EOF
|
||||
{ "unmapped.${UL}", 0, 0, "${U}", NULL, "%.0f", 0, NULL },
|
||||
{ "unmapped.${UL}", 0, 0, "${U}", NULL, "%.0f", 0, NULL },
|
||||
EOF
|
||||
done
|
||||
|
||||
cat >> "$CFILE" <<EOF
|
||||
|
||||
/* end of structure. */
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, 0, NULL }
|
||||
/* end of structure. */
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
static const char *${LDRIVER}_format_model(HIDDevice_t *hd) {
|
||||
|
@ -293,6 +296,7 @@ subdriver_t ${LDRIVER}_subdriver = {
|
|||
${LDRIVER}_format_model,
|
||||
${LDRIVER}_format_mfr,
|
||||
${LDRIVER}_format_serial,
|
||||
fix_report_desc, /* may optionally be customized, see cps-hid.c for example */
|
||||
};
|
||||
EOF
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue