aboutsummaryrefslogtreecommitdiff
path: root/scripts/mksysmap
diff options
context:
space:
mode:
authorWerner Almesberger <werner@openmoko.org>2009-01-19 01:18:04 +0000
committerAndy Green <agreen@octopus.localdomain>2009-01-19 01:18:04 +0000
commitcde71aa787eb9f986c04da58e9f9130be2ac52eb (patch)
tree5b593521f2acd393088d6bb6aebffc840cb1dd77 /scripts/mksysmap
parentffe28618306dfeb7d7923539cc468ff2dbbdf1dc (diff)
make neo1973_pm_gps.c suck less
Here's a bunch of changes to neo1973_pm_gps.c. The thing I set out to change was just the initial power state, but there's so much wrong in there, I couldn't resist slaying some evil on the way: - update the copyright year - show slightly more confidence in operator precedence - simplify #ifdef rat's nest a little - rename "pwron" sysfs file to "power_on", to conform to all the rest - wrap lines longer than 80 columns - use PTR_ERR, not cast - reduce redundancy and increase readability in code patching gta01_gps_sysfs_entries - on GTA02 and if booted by u-boot, GPS is powered on. Power it off, like on GTA01 or with Qi. It's still nasty, but slightly less painful to look at now. Tested on GTA02 and tested that it still compiles for GTA01. The name change from "pwron" to "power_on" may be controversial. If this causes undue misery for distribution makers, please holler. Signed-off-by: Werner Almesberger <werner@openmoko.org>
Diffstat (limited to 'scripts/mksysmap')
0 files changed, 0 insertions, 0 deletions