diff options
author | Werner Almesberger <werner@openmoko.org> | 2009-01-19 01:18:06 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-01-19 01:18:06 +0000 |
commit | d1184dc21448404d2e274ce5a5a95b98878a624f (patch) | |
tree | 0b3ec65f9a6de67d0ae0f295a29c86ade03bbe7f /arch/arm/mach-s3c2410 | |
parent | cde71aa787eb9f986c04da58e9f9130be2ac52eb (diff) |
clean up GTA02 WLAN power control
This patch cleans up the GTA02 WLAN power control platform device:
- remove misleading /sys/devices/platform/gta02-pm-wlan.0/power_on
Users really wishing to play with reset can just gpio j12=0
- rename gta02_wlan_power to gta02_wlan_reset, because that's what it
truly is
- remove handling of GTA02_CHIP_PWD because
- it's not used, say our schematics
- even if it is, it's sampled long before we could affect it
- move SDIO-specific conversion from "power switch" to "reset
button" logic from gta02_wlan_reset to gta02_s3c_mmc_set_power
- removed mutex protection because we now only have a single user
A note in passing: we can probably do away with gta02_pm_wlan
completely once upstream rfkill adds better support for type-based
control.
Signed-off-by: Werner Almesberger <werner@openmoko.org>
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/gta02-pm-wlan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2410/include/mach/gta02-pm-wlan.h b/arch/arm/mach-s3c2410/include/mach/gta02-pm-wlan.h index 5a224fe036b..48369789709 100644 --- a/arch/arm/mach-s3c2410/include/mach/gta02-pm-wlan.h +++ b/arch/arm/mach-s3c2410/include/mach/gta02-pm-wlan.h @@ -1,7 +1,7 @@ #ifndef __MACH_GTA02_PM_WLAN_H #define __MACH_GTA02_PM_WLAN_H -void gta02_wlan_power(int on); +void gta02_wlan_reset(int assert_reset); int gta02_wlan_query_rfkill_lock(void); void gta02_wlan_query_rfkill_unlock(void); void gta02_wlan_set_rfkill_cb(int (*cb)(void *user, int on), void *user); |