diff mbox

[1/2] Input: xpad - Minor coding style errors fixed.

Message ID 1354433779-16274-1-git-send-email-g@maral.me (mailing list archive)
State New, archived
Headers show

Commit Message

Guillermo A. Amaral Dec. 2, 2012, 7:36 a.m. UTC
From: "Guillermo A. Amaral" <g@maral.me>

Fixed a few minor coding style issues in xpad driver.

Signed-off-by: "Guillermo A. Amaral B." <g@maral.me>
---
 drivers/input/joystick/xpad.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Comments

Dmitry Torokhov Dec. 4, 2012, 5:24 a.m. UTC | #1
On Sat, Dec 01, 2012 at 11:36:19PM -0800, Guillermo A. Amaral wrote:
> From: "Guillermo A. Amaral" <g@maral.me>
> 
> Fixed a few minor coding style issues in xpad driver.

Applied both, thanks Guillermo.
Guillermo A. Amaral Dec. 4, 2012, 7:28 a.m. UTC | #2
On Mon, Dec 03, 2012 at 09:24:00PM -0800, Dmitry Torokhov wrote:
> On Sat, Dec 01, 2012 at 11:36:19PM -0800, Guillermo A. Amaral wrote:
> > From: "Guillermo A. Amaral" <g@maral.me>
> > 
> > Fixed a few minor coding style issues in xpad driver.
> 
> Applied both, thanks Guillermo.

Thanks! Sorry about the double email btw, I thought it failed to send the
first one.

I've getting quite a few gamepad donations for my game console project, so
expect more patches. ;)

Cheers,
G
Dmitry Torokhov Dec. 4, 2012, 9:10 p.m. UTC | #3
On Mon, Dec 03, 2012 at 11:28:36PM -0800, Guillermo A. Amaral wrote:
> On Mon, Dec 03, 2012 at 09:24:00PM -0800, Dmitry Torokhov wrote:
> > On Sat, Dec 01, 2012 at 11:36:19PM -0800, Guillermo A. Amaral wrote:
> > > From: "Guillermo A. Amaral" <g@maral.me>
> > > 
> > > Fixed a few minor coding style issues in xpad driver.
> > 
> > Applied both, thanks Guillermo.
> 
> Thanks! Sorry about the double email btw, I thought it failed to send the
> first one.
> 
> I've getting quite a few gamepad donations for my game console project, so
> expect more patches. ;)

OK, I will ;)
diff mbox

Patch

diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 83811e4..3d8f39b 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -235,7 +235,7 @@  static const signed short xpad_abs_triggers[] = {
 	{ XPAD_XBOX360_VENDOR_PROTOCOL(vend,1) }, \
 	{ XPAD_XBOX360_VENDOR_PROTOCOL(vend,129) }
 
-static struct usb_device_id xpad_table [] = {
+static struct usb_device_id xpad_table[] = {
 	{ USB_INTERFACE_INFO('X', 'B', 0) },	/* X-Box USB-IF not approved class */
 	XPAD_XBOX360_VENDOR(0x045e),		/* Microsoft X-Box 360 controllers */
 	XPAD_XBOX360_VENDOR(0x046d),		/* Logitech X-Box 360 style controllers */
@@ -251,7 +251,7 @@  static struct usb_device_id xpad_table [] = {
 	{ }
 };
 
-MODULE_DEVICE_TABLE (usb, xpad_table);
+MODULE_DEVICE_TABLE(usb, xpad_table);
 
 struct usb_xpad {
 	struct input_dev *dev;		/* input device interface */
@@ -783,7 +783,7 @@  static int xpad_open(struct input_dev *dev)
 	struct usb_xpad *xpad = input_get_drvdata(dev);
 
 	/* URB was submitted in probe */
-	if(xpad->xtype == XTYPE_XBOX360W)
+	if (xpad->xtype == XTYPE_XBOX360W)
 		return 0;
 
 	xpad->irq_in->dev = xpad->udev;