Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting cleanup #48

Merged
merged 3 commits into from
Oct 29, 2017
Merged

Formatting cleanup #48

merged 3 commits into from
Oct 29, 2017

Conversation

roadrunner2
Copy link
Contributor

Just some basic cleanups. No functional change.

This includes:
* limiting line lengths to 80 chars
* putting return type on same line as function name in function
  declarations
* ensuring space around binary operators
* replacing C++ // comments with C /* */ comments

No functional changes.
It is apparently safe to initialize these once and keep re-using them.
A number of existing drivers do this already.

Also inlined applespi_setup_spi_message() since it's only used in two
places and didn't seem to be worth it.

This is in response to a review by Lukas Wunner.
@roadrunner2 roadrunner2 mentioned this pull request Oct 16, 2017
@roadrunner2
Copy link
Contributor Author

Added another commit on top here in response to @l1k's comments. It's not a formatting cleanup, but it just refactors the code a bit, so still no functional change.

@l1k
Copy link
Contributor

l1k commented Oct 16, 2017

Just ran this through scripts/checkpatch.pl --strict -f, it only finds this nit:

CHECK: 'seperate' may be misspelled - perhaps 'separate'?
#1289: 
	/* Now, set up the touchpad as a seperate input device */

@l1k
Copy link
Contributor

l1k commented Oct 16, 2017

To mainline, put it somewhere in drivers/input/ (keyboard? misc?), add Kconfig and Makefile entries, add copyright + license header to the file, write a commit message which explains a bit which machines this is for and how it works, add Signed-off-by for all contributors, send it to the list and maintainers, cc everyone who might be relevant.

git only allows a single author unfortunately, that's probably either of Federico or Ronald.

The patch might have to go through the merry-go-round a couple of times, depends on the maintainers, some are lax and some are picky. I've no past experience with the input maintainers.

Once the driver gets merged, it will be a bit more cumbersome to make changes as everything goes through the regular review process on mailing lists, instead of informal pull requests on GitHub.

Let me know if you need help with any of these steps.

@cb22 cb22 merged commit 28ee7ae into cb22:master Oct 29, 2017
@roadrunner2 roadrunner2 deleted the formatting-cleanup branch November 8, 2017 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants