diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-09-29 17:31:34 +0900 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-10-12 21:37:37 -0600 |
commit | 65308c46b760bb2ccb043b47bb5f053dbb8d11b5 (patch) | |
tree | b1207bb74c3c8e04ac0dbe856b0b449011d7d19a /drivers/spi/Kconfig | |
parent | e8b17b5b3f30252b5470dbbf54bc251ddc7fac17 (diff) | |
download | linux-65308c46b760bb2ccb043b47bb5f053dbb8d11b5.tar.gz linux-65308c46b760bb2ccb043b47bb5f053dbb8d11b5.tar.bz2 linux-65308c46b760bb2ccb043b47bb5f053dbb8d11b5.zip |
spi/topcliff: cleanups for style and conciseness
This patch makes multiple cleanups to the new topcliff pch spi driver
including, but not limited to,
- removing superfluous brackets around variables
- open coding functions that are only used once
- removing unnecessary line breaks
- removing unused functions
- simplifying the interrupt enable/disable code
- remove unnecessary (void *) casts.
- remove b_mem_fail from pch_spi_set_tx to code it more cleanly
- shorten dev_dbg() messages for conciseness and readability
More cleanups are still needed in this driver. In particular,
- the driver filename should be changed to spi_topcliff_pch.c
- many of the dev_dbg() lines should be trimmed (particularly the ones
on unconditional code paths).
- I suspect that the locking model not correct. I'd like to know what
drivers' critical regions are, and how they are protected.
- get_resources and release_resources probably should be open coded in
.probe and .release respectively.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/Kconfig')
0 files changed, 0 insertions, 0 deletions