HID: magicmouse: coding style and probe failure fixes
authorMichael Poole <mdpoole@troilus.org>
Thu, 11 Feb 2010 05:32:57 +0000 (00:32 -0500)
committerJiri Kosina <jkosina@suse.cz>
Thu, 11 Feb 2010 10:22:35 +0000 (11:22 +0100)
commit71b38bd4c1cc4f2b653064357e4efab77dfd711d
tree32baee79b6f35fc6c0b0d3f2cfc9e09738781c88
parent9f5231472340ebcaf2dec75428b67d5d0d872857
HID: magicmouse: coding style and probe failure fixes

Use proper values to initialize bool configuration variables, tabs rather than
spaces, no braces for one-line else clause, __set_bit() when the operation
doesn't have to be atomic, input_set_abs_params() rather than writing the
fields directly, and call hid_hw_stop() when appropriate to handle failures in
the probe.

Signed-off-by: Michael Poole <mdpoole@troilus.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c