login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
October
»
10
Re: [PATCH 2/3] Add Opticon OPN2001 write support
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Sergei Shtylyov
Subject:
Re: [PATCH 2/3] Add Opticon OPN2001 write support
Date: Sunday, October 10, 2010 - 6:58 am
Hello. On 10/10/10 16:34, Greg KH wrote:
quoted text
>>> OPN2001 expects write operations to arrive as a vendor-specific command >>> through the control pipe (instead of using a separate bulk-out pipe).
quoted text
>>> Signed-off-by: Alon Ziv<alon-git@nolaviz.org> >>> --- >>> drivers/usb/serial/opticon.c | 30 ++++++++++++++++++++++++++---- >>> 1 files changed, 26 insertions(+), 4 deletions(-)
quoted text
>>> diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c >>> index 9ff19c8..4fe7c3d 100644 >>> --- a/drivers/usb/serial/opticon.c >>> +++ b/drivers/usb/serial/opticon.c >> [...]
quoted text
>>> + } else { >>> + struct usb_ctrlrequest *dr; >>> + >>> + dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_NOIO);
quoted text
>> sizeof(*dr) is a preferred form.
quoted text
> No, people disagree on this, there is no 'preferred' form, you are free > to use either way.
Please refer to the CodingStyle chapter 14. This is preferred form, according to it... WBR, Sergei --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/3] opticon driver fixes
, Alon Ziv
, (Sat Oct 9, 11:32 pm)
[PATCH 1/3] Fix long-standing bugs in opticon driver
, Alon Ziv
, (Sat Oct 9, 11:32 pm)
[PATCH 2/3] Add Opticon OPN2001 write support
, Alon Ziv
, (Sat Oct 9, 11:32 pm)
[PATCH 3/3] Whitespace fixes in opticon driver
, Alon Ziv
, (Sat Oct 9, 11:32 pm)
Re: [PATCH 2/3] Add Opticon OPN2001 write support
, Sergei Shtylyov
, (Sun Oct 10, 3:53 am)
Re: [PATCH 2/3] Add Opticon OPN2001 write support
, Greg KH
, (Sun Oct 10, 5:34 am)
Re: [PATCH 2/3] Add Opticon OPN2001 write support
, Sergei Shtylyov
, (Sun Oct 10, 6:58 am)
Re: [PATCH 2/3] Add Opticon OPN2001 write support
, Greg KH
, (Sun Oct 10, 7:52 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Kay Sievers
Re: char/tpm: tpm_infineon no longer loaded for HP 2510p laptop
Eric W. Biederman
[PATCH 8/8] sysfs: user namespaces: fix bug with clone(CLONE_NEWUSER) with fairsched
S K
Re: cpufreq doesn't seem to work in Intel Q9300
Bart Van Assche
Re: Is gcc thread-unsafe?
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
git
:
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] git-mv: Keep moved index entries inact
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Gabriel
[PATCH] When a remote is added but not fetched, tell the user.
linux-netdev
:
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Jeff Kirsher
[net-2.6 PATCH 2/5] e1000e: increase swflag acquisition timeout for ICHx/PCH
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
MIPS: Cavium: Remove unused watchdog code.
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
Linux Kernel Mailing List
sm501: add power control callback
openbsd-misc
:
Jason Dixon
Re: any web management gui for pf ?
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
daniele.pilenga
snmpd hangs on 4.1 looking up hrSWRunTable
Colocation donated by:
Syndicate