From: Mike Frysinger Date: Sat, 8 Oct 2011 17:17:05 -0400 Subject: [U-Boot] [PATCH 1/2] USB: Rework USB keyboard driver In-Reply-To: <201110082121.02520.marek.vasut@gmail.com> References: <1317990657-17214-1-git-send-email-marek.vasut@gmail.com> <201110081506.01309.vapier@gentoo.org> <201110082121.02520.marek.vasut@gmail.com> Message-ID: <201110081717.07448.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Saturday 08 October 2011 15:21:02 Marek Vasut wrote: > On Saturday, October 08, 2011 09:05:59 PM Mike Frysinger wrote: > > On Friday 07 October 2011 08:30:55 Marek Vasut wrote: > > > +#define LEFT_CNTR (1 << 0) > > > +#define LEFT_SHIFT (1 << 1) > > > +#define LEFT_ALT (1 << 2) > > > +#define LEFT_GUI (1 << 3) > > > +#define RIGHT_CNTR (1 << 4) > > > +#define RIGHT_SHIFT (1 << 5) > > > +#define RIGHT_ALT (1 << 6) > > > +#define RIGHT_GUI (1 << 7) > > > + > > > +/* Size of the keyboard buffer */ > > > +#define USB_KBD_BUFFER_LEN 0x20 > > > + > > > +/* Device name */ > > > +#define DEVNAME "usbkbd" > > > > #define not #define > > Why? there's nothing for you to align the define name to, and imo, looks wrong when viewing the diff. looking at the source, "#define" is 7 chars, so the tab is just a single char, but a diff throws that off turning it into 8 chars. and it's pretty non-standard with the rest of the code base. -MIKE -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111008/771d298a/attachment.pgp